From aad042ec271751a962f5e2baa69dcf00c664841c Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Mon, 13 May 2013 16:49:21 +0200
Subject: [PATCH] reporting: change legend_boxoff to showLegendBox

---
 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 f47bd2c2d5..ca75c7beff 100644
--- a/matlab/reporting/@graph/createGraph.m
+++ b/matlab/reporting/@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/reporting/@graph/graph.m b/matlab/reporting/@graph/graph.m
index 35551d466f..16a6c74c82 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_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 && ...
-- 
GitLab