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

reporting: replace format with date2string

parent afacf272
No related branches found
No related tags found
No related merge requests found
......@@ -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});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment