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

reporting: @series: rename lineStyle as graphLineStyle

parent 8a45999e
......@@ -40,9 +40,9 @@ disp(' ');
disp([' ''' o.graphLineColor '''']);
disp(' ');
disp([name '.line_style = ']);
disp([name '.graphLineStyle = ']);
disp(' ');
disp([' ''' o.line_style '''']);
disp([' ''' o.graphLineStyle '''']);
disp(' ');
disp([name '.line_width = ']);
......
......@@ -36,8 +36,8 @@ assert(~isempty(o.data) && isa(o.data, 'dynSeries'), ['@series.getLine: must ' .
% Line
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, ' ')]);
assert(any(strcmp(o.graphLineStyle, valid_line_style)), ...
['@series.getLine: graphLineStyle must be one of ' strjoin(valid_line_style, ' ')]);
assert(isfloat(o.lineWidth), ['@series.getLine: lineWidth must be a ' ...
'positive number']);
......@@ -54,8 +54,8 @@ assert(isfloat(o.graphMarkerSize), ['@series.getLine: graphMarkerSize must be a
'positive number']);
% Marker & Line
assert(~(strcmp(o.lineStyle, 'none') && isempty(o.graphMarker)), ['@series.getLine: ' ...
'you must provide at least one of lineStyle and graphMarker']);
assert(~(strcmp(o.graphLineStyle, 'none') && isempty(o.graphMarker)), ['@series.getLine: ' ...
'you must provide at least one of graphLineStyle and graphMarker']);
% Validate xrange
assert(isempty(xrange) || isa(xrange, 'dynDates'));
......@@ -71,7 +71,7 @@ opt = {'XData', 1:length(ds.data)};
opt = {opt{:}, 'YData', ds.data};
opt = {opt{:}, 'Color', o.graphLineColor};
opt = {opt{:}, 'LineStyle', o.lineStyle};
opt = {opt{:}, 'LineStyle', o.graphLineStyle};
opt = {opt{:}, 'LineWidth', o.lineWidth};
if ~isempty(o.graphMarker)
......
......@@ -36,7 +36,7 @@ o = struct;
o.data = '';
o.graphLineColor = 'k';
o.lineStyle = '-';
o.graphLineStyle = '-';
o.lineWidth = 0.5;
o.graphMarker = '';
......
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