reporting: @series: rename lineStyle as graphLineStyle
parent
8a45999e19
commit
f6ff010b36
|
@ -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 ' .
|
||||||
% 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
|
||||||
'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)};
|
||||||
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;
|
||||||
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 = '';
|
||||||
|
|
Loading…
Reference in New Issue