reporting: change legend to showLegend

time-shift
Houtan Bastani 2013-05-13 16:31:50 +02:00
parent 36ee655d03
commit 80c9bf6c4c
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ for i=1:length(xticks)
end
set(gca, 'XTickLabel', xTickLabels);
if o.legend
if o.showLegend
lh = legend(line_handles, o.seriesElements.getTexNames(), ...
'orientation', o.legend_orientation, ...
'location', o.legend_location);

View File

@ -54,8 +54,8 @@ o.shade_opacity = .2;
o.showGrid = true;
o.legend = false;
o.legend_boxoff = false;
o.showLegend = false;
o.legend_location = 'SouthEast';
o.legend_orientation = 'horizontal';
o.legend_font_size = 8;
@ -94,7 +94,7 @@ assert(ischar(o.xlabel), '@graph.graph: xlabel file must be a string');
assert(ischar(o.ylabel), '@graph.graph: ylabel file must be a string');
assert(ischar(o.figname), '@graph.graph: figname must be a string');
assert(islogical(o.showGrid), '@graph.graph: showGrid must be either true or false');
assert(islogical(o.legend), '@graph.graph: legend must be either true or false');
assert(islogical(o.showLegend), '@graph.graph: showLegend must be either true or false');
assert(islogical(o.legend_boxoff), '@graph.graph: legend_boxoff must be either true or false');
assert(isint(o.legend_font_size), '@graph.graph: legend_font_size must be an integer');
assert(islogical(o.zeroline), '@graph.graph: zeroline must be either true or false');