From 89b0bd09043bb14c29452c4577791d6ed40c8e93 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 13 May 2013 16:27:00 +0200 Subject: [PATCH] reporting: change grid option to showGrid --- 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 d702a8d7d..9bfaf4878 100644 --- a/matlab/reports/@graph/createGraph.m +++ b/matlab/reports/@graph/createGraph.m @@ -41,7 +41,7 @@ end h = figure('visible','off'); hold on; box on; -if o.grid +if o.showGrid grid on; set(gca, 'GridLineStyle', '--'); end diff --git a/matlab/reports/@graph/graph.m b/matlab/reports/@graph/graph.m index 8b89dcca6..3d7ce0c3f 100644 --- a/matlab/reports/@graph/graph.m +++ b/matlab/reports/@graph/graph.m @@ -52,7 +52,7 @@ o.shade = ''; o.shade_color = [0 1 0]; o.shade_opacity = .2; -o.grid = true; +o.showGrid = true; o.legend = false; o.legend_boxoff = false; @@ -93,7 +93,7 @@ assert(ischar(o.config), '@graph.graph: config file must be a string'); 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.grid), '@graph.graph: grid must be either true or false'); +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.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');