reporting: change color to graphLineColor

time-shift
Houtan Bastani 2013-05-14 16:35:10 +02:00
parent df3b337924
commit 8a45999e19
3 changed files with 5 additions and 5 deletions

View File

@ -35,9 +35,9 @@ disp(' ');
display(o.data); display(o.data);
disp(' '); disp(' ');
disp([name '.color = ']); disp([name '.graphLineColor = ']);
disp(' '); disp(' ');
disp([' ''' o.color '''']); disp([' ''' o.graphLineColor '''']);
disp(' '); disp(' ');
disp([name '.line_style = ']); disp([name '.line_style = ']);

View File

@ -34,7 +34,7 @@ assert(~isempty(o.data) && isa(o.data, 'dynSeries'), ['@series.getLine: must ' .
'provide data as a dynSeries']); 'provide data as a dynSeries']);
% Line % 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', '-', '--', ':', '-.'}; valid_line_style = {'none', '-', '--', ':', '-.'};
assert(any(strcmp(o.lineStyle, valid_line_style)), ... assert(any(strcmp(o.lineStyle, valid_line_style)), ...
['@series.getLine: lineStyle must be one of ' strjoin(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 = {'XData', 1:length(ds.data)};
opt = {opt{:}, 'YData', ds.data}; opt = {opt{:}, 'YData', ds.data};
opt = {opt{:}, 'Color', o.color}; opt = {opt{:}, 'Color', o.graphLineColor};
opt = {opt{:}, 'LineStyle', o.lineStyle}; opt = {opt{:}, 'LineStyle', o.lineStyle};
opt = {opt{:}, 'LineWidth', o.lineWidth}; opt = {opt{:}, 'LineWidth', o.lineWidth};

View File

@ -35,7 +35,7 @@ o = struct;
o.data = ''; o.data = '';
o.color = 'k'; o.graphLineColor = 'k';
o.lineStyle = '-'; o.lineStyle = '-';
o.lineWidth = 0.5; o.lineWidth = 0.5;