1 %> @ingroup soframework graphicsapi
3 %> @brief Draw many subplots (subimages) in two rows
5 %> First row is rates, second is times3, each column is a different nf
7 %> expected dimensions: (subdsperc, number of features, C1 (e.g. C), C2 (e.g. gamma))
9 %> This function is not being used a lot; Could be made into a class some time
13 %> @param r sovalues
object
19 R = sovalues.getYY(r.values, 'rates');
20 T = sovalues.getYY(r.values, 'times3');
21 [nnf, nc1, nc2, folds] = size(R);
23 % R = reshape(R(end, :, :, :, :), [nnf, nc1, nc2, folds]);
24 % T = reshape(T(end, :, :, :, :), [nnf, nc1, nc2, folds]);
39 o.clim = [minR, maxR];
40 o.dimspec = {[ww 0 0], [1 2]};
44 % o.chooser = oo.chooser_clarchsel1;
62 subplot(2, nnf, ww+nnf);
65 o.clim = [minT, maxT];
66 o.dimspec = {[ww 0 0], [1 2]};
67 o.valuesfieldname =
'times3';
83 %
save_as_png([], [saveprefix,
'_times_nf', int2str(ww),
'.png']);
91 %--------------------------------------------------------------------------
94 st = get(get(gca, 'title'), 'String');
95 semicolonpos = find(st == ';');
96 if ~isempty(semicolonpos)
97 st = st(semicolonpos+2:end);
98 st = strrep(st, 'Number of features: ', 'nf=');
100 set(get(gca, 'title'), 'FontWeight', 'bold');
105 %--------------------------------------------------------------------------
108 p = get(gca, 'Position');
113 set(gca, 'Position', [p(1:2)-.05, p(3:4)*1.15]);
115 % %writes text at right of colorbar
116 % p = get(h, 'Position');
118 % global FONT FONTSIZE; %
#ok<*TLEV>
119 % text(
'Position', [p(1)+p(3)+0.1, p(2)+p(4)/2, 0], ...
120 %
'Rotation', -90, ...
121 %
'HorizontalAlignment',
'center', ...
122 %
'VerticalAlignment',
'middle', ...
123 %
'FontName', FONT, ...
124 %
'FontSize',
scaled(FONTSIZE), ...
125 %
'String', labeldict(s));
129 %--------------------------------------------------------------------------
131 tl = get(gca, 'XTickLabel');
132 tl = cellfun(@(x)
iif(str2num(x) == floor(str2num(x)), x, ''), tl, 'UniformOutput', 0); %
#ok<*ST2NM>
133 set(gca,
'XTickLabel', tl);
135 tl =
get(gca,
'YTickLabel');
136 tl = cellfun(@(x)
iif(str2num(x) == floor(str2num(x)), x,
''), tl,
'UniformOutput', 0); %#ok<*ST2NM>
137 set(gca,
'YTickLabel', tl);
function maximize_window(in h, in aspectratio, in normalizedsize)
Draws image from a sovalues object.
Property valuesfieldname
=rates
function save_as_png(in h, in fn, in dpi)
function view_ratetimesubimages(in r)
function iif(in cond, in x1, in x2)
function colorbardeal(in ww, in nnf, in s)
Base for all reports that operate on a soitem object.