From af11f6449ffeb642b2097a06561b8ee96179d1b4 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Mon, 13 May 2013 16:31:50 +0200 Subject: [PATCH] reporting: change legend to showLegend --- matlab/reporting/@graph/createGraph.m | 2 +- matlab/reporting/@graph/graph.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m index 9bfaf48783..f47bd2c2d5 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 3d7ce0c3fb..35551d466f 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'); -- GitLab