From e6b99ad6172e8367c7197978af470c603b48135f Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 14 May 2013 18:35:19 +0200 Subject: [PATCH] reporting: @graph: only take string representation of color --- matlab/reports/@graph/graph.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/reports/@graph/graph.m b/matlab/reports/@graph/graph.m index 452281de3..1fcf299c8 100644 --- a/matlab/reports/@graph/graph.m +++ b/matlab/reports/@graph/graph.m @@ -49,7 +49,7 @@ o.xrange = ''; o.yrange = ''; o.shade = ''; -o.shadeColor = [0 1 0]; +o.shadeColor = 'green'; o.shadeOpacity = .2; o.showGrid = true; @@ -99,6 +99,7 @@ assert(islogical(o.showLegend), '@graph.graph: showLegend must be either true or 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.showZeroline), '@graph.graph: showZeroline must be either true or false'); +assert(ischar(o.shadeColor), '@graph.graph: shadeColor must be a string'); 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]');