IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
vis_sovalues_drawsubplot.m
Go to the documentation of this file.
1 %> @brief Draws plot from a sovalues object
3  properties
4  %> ={[Inf, 0, 0], [1, 2]}
5  %> @sa sovalues.m
6  dimspec = {[Inf, 0, 0], [1, 2]};
7 
8  %> =rates
9  valuesfieldname = 'rates';
10 
11  %> =[]
12  ylimits;
13 
14  %> =[]
15  xticks;
16 
17  %> =[]
18  xticklabels;
19 
20  %>
21  flag_star = 1;
22 
23  %>
24  flag_hachure = 0;
25  end;
26 
27 
28  methods
29  %> Constructor
30  function o = vis_sovalues_drawsubplot()
31  o.classtitle = 'Subplots';
32  o.inputclass = 'sovalues';
33  end;
34  end;
35 
36 
37  methods(Access=protected)
38  function out = do_use(o, r)
39  out = [];
40 
41  p = plotter12();
42  p.flag_hachure = o.flag_hachure;
43  [p.values, p.ax] = sovalues.get_vv_aa(r.values, r.ax, o.dimspec);
44 
45  star_ii = [];
46  ch = r.chooser;
47  if o.flag_star && ~isempty(ch)
48  %> Finds the "best" (x's) to put stars on
49  for i = 1:size(p.values, 2);
50  temp = ch.use(p.values(:, i)); %#ok<*AGROW>
51  star_ii(i) = temp{1};
52  end;
53  end;
54 
55  p.draw_subplots(o.valuesfieldname, o.ylimits, o.xticks, o.xticklabels, star_ii);
56  end;
57  end;
58 end
Draws plot from a sovalues object.
Visualization base class.
Definition: vis.m:4
function draw_subplots(in o, in name, in ylimits, in xticks, in xticklabels, in star_ii)