diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m index f5a2da6bacaa2441483cfc176627748e364fddbb..9bf8422c7cbd1d87405a3b857863f799484b3d2e 100644 --- a/matlab/reporting/@graph/createGraph.m +++ b/matlab/reporting/@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/reporting/@graph/graph.m b/matlab/reporting/@graph/graph.m index 8500512a6e0f77a58614b19ef8f45ea7b5580863..c1bb5c951eadcbeda0c94eedcb935bb37fa39bf5 100644 --- a/matlab/reporting/@graph/graph.m +++ b/matlab/reporting/@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]');