Skip to content
Snippets Groups Projects
Commit af11f644 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: change legend to showLegend

parent bb7d6c75
Branches
Tags
No related merge requests found
......@@ -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);
......
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment