reporting: change color to graphLineColor
parent
b521b6adee
commit
7b97c358f3
|
@ -35,9 +35,9 @@ disp(' ');
|
|||
display(o.data);
|
||||
|
||||
disp(' ');
|
||||
disp([name '.color = ']);
|
||||
disp([name '.graphLineColor = ']);
|
||||
disp(' ');
|
||||
disp([' ''' o.color '''']);
|
||||
disp([' ''' o.graphLineColor '''']);
|
||||
|
||||
disp(' ');
|
||||
disp([name '.line_style = ']);
|
||||
|
|
|
@ -34,7 +34,7 @@ assert(~isempty(o.data) && isa(o.data, 'dynSeries'), ['@series.getLine: must ' .
|
|||
'provide data as a dynSeries']);
|
||||
|
||||
% Line
|
||||
assert(ischar(o.color), '@series.getLine: color must be a string');
|
||||
assert(ischar(o.graphLineColor), '@series.getLine: graphLineColor must be a string');
|
||||
valid_line_style = {'none', '-', '--', ':', '-.'};
|
||||
assert(any(strcmp(o.lineStyle, valid_line_style)), ...
|
||||
['@series.getLine: lineStyle must be one of ' strjoin(valid_line_style, ' ')]);
|
||||
|
@ -70,7 +70,7 @@ end
|
|||
opt = {'XData', 1:length(ds.data)};
|
||||
opt = {opt{:}, 'YData', ds.data};
|
||||
|
||||
opt = {opt{:}, 'Color', o.color};
|
||||
opt = {opt{:}, 'Color', o.graphLineColor};
|
||||
opt = {opt{:}, 'LineStyle', o.lineStyle};
|
||||
opt = {opt{:}, 'LineWidth', o.lineWidth};
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ o = struct;
|
|||
|
||||
o.data = '';
|
||||
|
||||
o.color = 'k';
|
||||
o.graphLineColor = 'k';
|
||||
o.lineStyle = '-';
|
||||
o.lineWidth = 0.5;
|
||||
|
||||
|
|
Loading…
Reference in New Issue