reporting: replace format with date2string
parent
664fa0d5e8
commit
94fc7382ca
|
@ -81,10 +81,10 @@ if o.showZeroline
|
|||
end
|
||||
|
||||
if ~isempty(o.shade)
|
||||
x1 = find(strcmpi(o.shade(1).format(), xlabels));
|
||||
x2 = find(strcmpi(o.shade(o.shade.ndat).format(), xlabels));
|
||||
x1 = find(strcmpi(date2string(o.shade(1)), xlabels));
|
||||
x2 = find(strcmpi(date2string(o.shade(end)), xlabels));
|
||||
assert(~isempty(x1) && ~isempty(x2), ['@graph.createGraph: either ' ...
|
||||
o.shade(1).format() ' or ' o.shade(o.shade.ndat).format() ' is not in the date ' ...
|
||||
date2string(o.shade(1)) ' or ' date2string(o.shade(end)) ' is not in the date ' ...
|
||||
'range of data selected.']);
|
||||
yrange = get(gca, 'YLim');
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ for i=1:length(fields)
|
|||
elseif isobject(val)
|
||||
if isa(val, 'dates')
|
||||
fprintf('<dates: %s, ..., %s>', ...
|
||||
val(1).format, val(end).format);
|
||||
date2string(val(1)), date2string(val(end)));
|
||||
elseif isa(val, 'dseries')
|
||||
if numel(val) == 1
|
||||
fprintf('<dseries: %s>', val.name{1});
|
||||
|
|
Loading…
Reference in New Issue