Skip to content
Snippets Groups Projects
Commit 0f48b7dc authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: @series: rename lineStyle as graphLineStyle

parent 7b97c358
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,9 @@ disp(' '); ...@@ -40,9 +40,9 @@ disp(' ');
disp([' ''' o.graphLineColor '''']); disp([' ''' o.graphLineColor '''']);
disp(' '); disp(' ');
disp([name '.line_style = ']); disp([name '.graphLineStyle = ']);
disp(' '); disp(' ');
disp([' ''' o.line_style '''']); disp([' ''' o.graphLineStyle '''']);
disp(' '); disp(' ');
disp([name '.line_width = ']); disp([name '.line_width = ']);
......
...@@ -36,8 +36,8 @@ assert(~isempty(o.data) && isa(o.data, 'dynSeries'), ['@series.getLine: must ' . ...@@ -36,8 +36,8 @@ assert(~isempty(o.data) && isa(o.data, 'dynSeries'), ['@series.getLine: must ' .
% Line % Line
assert(ischar(o.graphLineColor), '@series.getLine: graphLineColor 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.graphLineStyle, valid_line_style)), ...
['@series.getLine: lineStyle must be one of ' strjoin(valid_line_style, ' ')]); ['@series.getLine: graphLineStyle must be one of ' strjoin(valid_line_style, ' ')]);
assert(isfloat(o.lineWidth), ['@series.getLine: lineWidth must be a ' ... assert(isfloat(o.lineWidth), ['@series.getLine: lineWidth must be a ' ...
'positive number']); 'positive number']);
...@@ -54,8 +54,8 @@ assert(isfloat(o.graphMarkerSize), ['@series.getLine: graphMarkerSize must be a ...@@ -54,8 +54,8 @@ assert(isfloat(o.graphMarkerSize), ['@series.getLine: graphMarkerSize must be a
'positive number']); 'positive number']);
% Marker & Line % Marker & Line
assert(~(strcmp(o.lineStyle, 'none') && isempty(o.graphMarker)), ['@series.getLine: ' ... assert(~(strcmp(o.graphLineStyle, 'none') && isempty(o.graphMarker)), ['@series.getLine: ' ...
'you must provide at least one of lineStyle and graphMarker']); 'you must provide at least one of graphLineStyle and graphMarker']);
% Validate xrange % Validate xrange
assert(isempty(xrange) || isa(xrange, 'dynDates')); assert(isempty(xrange) || isa(xrange, 'dynDates'));
...@@ -71,7 +71,7 @@ opt = {'XData', 1:length(ds.data)}; ...@@ -71,7 +71,7 @@ opt = {'XData', 1:length(ds.data)};
opt = {opt{:}, 'YData', ds.data}; opt = {opt{:}, 'YData', ds.data};
opt = {opt{:}, 'Color', o.graphLineColor}; opt = {opt{:}, 'Color', o.graphLineColor};
opt = {opt{:}, 'LineStyle', o.lineStyle}; opt = {opt{:}, 'LineStyle', o.graphLineStyle};
opt = {opt{:}, 'LineWidth', o.lineWidth}; opt = {opt{:}, 'LineWidth', o.lineWidth};
if ~isempty(o.graphMarker) if ~isempty(o.graphMarker)
......
...@@ -36,7 +36,7 @@ o = struct; ...@@ -36,7 +36,7 @@ o = struct;
o.data = ''; o.data = '';
o.graphLineColor = 'k'; o.graphLineColor = 'k';
o.lineStyle = '-'; o.graphLineStyle = '-';
o.lineWidth = 0.5; o.lineWidth = 0.5;
o.graphMarker = ''; o.graphMarker = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment