IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
vis_sovalues_drawplot.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  %> =1.
12  flag_legend;
13 
14  %> =[]
15  ylimits;
16 
17  %> =[]
18  xticks;
19 
20  %> =[]
21  xticklabels;
22 
23  %>
24  flag_star = 1;
25 
26  %>
27  flag_hachure = 0;
28  end;
29 
30 
31  methods
32  %> Constructor
33  function o = vis_sovalues_drawplot(o) %#ok<*INUSD>
34  o.classtitle = 'Single plot';
35  o.inputclass = 'sovalues';
36  end;
37  end;
38 
39 
40  methods(Access=protected)
41  function out = do_use(o, r)
42  out = [];
43 
44  p = plotter12();
45  p.flag_hachure = o.flag_hachure;
46  [p.values, p.ax] = sovalues.get_vv_aa(r.values, r.ax, o.dimspec);
47 
48  star_ii = [];
49  ch = r.chooser;
50  if o.flag_star && ~isempty(ch)
51  %> Finds the "best" (x's) to put stars on
52 
53  for i = 1:size(p.values, 2);
54  temp = ch.use(p.values(:, i));
55  star_ii(i) = temp{1};
56  end;
57  end;
58 
59 
60  p.draw_plot(o.valuesfieldname, o.flag_legend, o.ylimits, o.xticks, o.xticklabels, star_ii);
61  end;
62  end;
63 end
Draws plot from a sovalues object.
function draw_plot(in o, in name, in flag_legend, in ylimits, in xticks, in xticklabels, in star_ii)
Visualization base class.
Definition: vis.m:4
Property classtitle
Class Title. Should have a descriptive name, as short as possible.
Definition: irobj.m:50