3 %>@brief Format x-axis to nice range and reversed
5 %> @param par May be either a vector or an
irdata object. If the former, takes the values at the extremities of the vector to use
as the x-axis limits;
if the latter, takes the x-axis limits from the @a fea_x
property and uses the @a xlabel
property to set the x-label.
10 if ~isempty(par.fea_names)
11 nf = numel(par.fea_x);
12 MAXTICKS = 16; % Maximum 12 ticks
15 ii = round(1:nins:nf);
20 set(gca, 'XTick', par.fea_x(ii));
21 set(gca, 'XTickLabel', par.fea_names(ii));
25 if isobject(par) || isstruct(par)
29 x2 = par.L_fea_x(end);
30 elseif ismember('fea_x', ff) %
irdata and others
34 irerror('parameter nas neither L_fea_x nor fea_x property!');
37 if ismember('xname', ff)
39 if ismember('xunit', ff)
40 if ~isempty(par.xunit);
41 s = [s ' (' par.xunit ')'];
46 else % Assumes numeric vector
59 v_xlim = [x1+xabs*.9, x1+xabs*1.1];
61 set(gca, 'XDir', 'reverse');
62 v_xlim = [x2*A, x1+(x2*(1-A))];
64 v_xlim = [x1*A, x2+(x1*(1-A))];
68 set(gca, 'XLim', v_xlim);
Feature Construction - Linear Transformations base class.
Analysis Session (AS) base class.