Commit e6b99ad6 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: @graph: only take string representation of color

parent cbd43ee9
...@@ -49,7 +49,7 @@ o.xrange = ''; ...@@ -49,7 +49,7 @@ o.xrange = '';
o.yrange = ''; o.yrange = '';
o.shade = ''; o.shade = '';
o.shadeColor = [0 1 0]; o.shadeColor = 'green';
o.shadeOpacity = .2; o.shadeOpacity = .2;
o.showGrid = true; o.showGrid = true;
...@@ -99,6 +99,7 @@ assert(islogical(o.showLegend), '@graph.graph: showLegend must be either true or ...@@ -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(islogical(o.showLegendBox), '@graph.graph: showLegendBox must be either true or false');
assert(isint(o.legendFontSize), '@graph.graph: legendFontSize must be an integer'); 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(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 && ... assert(isfloat(o.shadeOpacity) && length(o.shadeOpacity)==1 && ...
o.shadeOpacity >= 0 && o.shadeOpacity <= 1, ... o.shadeOpacity >= 0 && o.shadeOpacity <= 1, ...
'@graph.graph: o.shadeOpacity must be a real in [0 1]'); '@graph.graph: o.shadeOpacity must be a real in [0 1]');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment