diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m index 9bfaf4878366ab4c99baee2c96669754418612d6..f47bd2c2d5d637790142e0c340342c9b8c43c4ac 100644 --- a/matlab/reporting/@graph/createGraph.m +++ b/matlab/reporting/@graph/createGraph.m @@ -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); diff --git a/matlab/reporting/@graph/graph.m b/matlab/reporting/@graph/graph.m index 3d7ce0c3fb3e1d336bf9c9373ecd543d7d698705..35551d466fd66e78cbe2199409bcf403436c8dff 100644 --- a/matlab/reporting/@graph/graph.m +++ b/matlab/reporting/@graph/graph.m @@ -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');