From 333d515fe98b8865d84c2d7350bdbb8e28af3545 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 13 May 2013 16:49:21 +0200 Subject: [PATCH] reporting: change legend_boxoff to showLegendBox --- matlab/reports/@graph/createGraph.m | 2 +- matlab/reports/@graph/graph.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m index f47bd2c2d..ca75c7bef 100644 --- a/matlab/reports/@graph/createGraph.m +++ b/matlab/reports/@graph/createGraph.m @@ -112,7 +112,7 @@ if o.showLegend 'location', o.legend_location); set(lh, 'FontSize', o.legend_font_size); set(lh, 'interpreter', 'latex'); - if o.legend_boxoff + if ~o.showLegendBox legend('boxoff'); end end diff --git a/matlab/reports/@graph/graph.m b/matlab/reports/@graph/graph.m index 35551d466..16a6c74c8 100644 --- a/matlab/reports/@graph/graph.m +++ b/matlab/reports/@graph/graph.m @@ -54,8 +54,8 @@ o.shade_opacity = .2; o.showGrid = true; -o.legend_boxoff = false; o.showLegend = false; +o.showLegendBox = false; o.legend_location = 'SouthEast'; o.legend_orientation = 'horizontal'; o.legend_font_size = 8; @@ -95,7 +95,7 @@ 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.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(islogical(o.showLegendBox), '@graph.graph: showLegendBox 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'); assert(isfloat(o.shade_opacity) && length(o.shade_opacity)==1 && ...