From df0749d16602fe5ce2a2dd3836b4080ba0113d25 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Mon, 13 May 2013 18:48:28 +0200 Subject: [PATCH] reporting: change zeroline to showZeroline --- 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 f5a2da6bac..9bf8422c7c 100644 --- a/matlab/reports/@graph/createGraph.m +++ b/matlab/reports/@graph/createGraph.m @@ -66,7 +66,7 @@ if ~isempty(o.yrange) ylim(o.yrange); end -if o.zeroline +if o.showZeroline a = ylim; if 0 > a(1) && 0 < a(2) lh = line(xlim, [0 0], 'color', 'k', 'LineWidth', 0.25); diff --git a/matlab/reports/@graph/graph.m b/matlab/reports/@graph/graph.m index 8500512a6e..c1bb5c951e 100644 --- a/matlab/reports/@graph/graph.m +++ b/matlab/reports/@graph/graph.m @@ -60,7 +60,7 @@ o.legendLocation = 'SouthEast'; o.legendOrientation = 'horizontal'; o.legendFontSize = 8; -o.zeroline = false; +o.showZeroline = false; if nargin == 1 assert(isa(varargin{1}, 'graph'),['@graph.graph: with one arg you ' ... @@ -99,7 +99,7 @@ assert(islogical(o.showGrid), '@graph.graph: showGrid must be either true or fal assert(islogical(o.showLegend), '@graph.graph: showLegend must be either true or false'); assert(islogical(o.showLegendBox), '@graph.graph: showLegendBox must be either true or false'); assert(isint(o.legendFontSize), '@graph.graph: legendFontSize must be an integer'); -assert(islogical(o.zeroline), '@graph.graph: zeroline must be either true or false'); +assert(islogical(o.showZeroline), '@graph.graph: showZeroline must be either true or false'); assert(isfloat(o.shadeOpacity) && length(o.shadeOpacity)==1 && ... o.shadeOpacity >= 0 && o.shadeOpacity <= 1, ... '@graph.graph: o.shadeOpacity must be a real in [0 1]'); -- GitLab