diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m
index f47bd2c2d5d637790142e0c340342c9b8c43c4ac..ca75c7beff40d38de591a3356dbcdb740d6d8648 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 35551d466fd66e78cbe2199409bcf403436c8dff..16a6c74c82959c96dc809b530515e6e22b729a0b 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 && ...