Bug fix. Force axis tight in @dseries/plot method (otherwise the method crashes if Matlab/octave considers a too large x-abscissa).

time-shift
Stéphane Adjemian (Scylla) 2013-12-09 12:34:25 +01:00
parent a51db32145
commit cf567dd5c0
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ switch ndseries
end
hh = plot(ts.data);
end
axis tight;
id = get(gca,'XTick');
if isequal(id(1),0)
dates = strings([ts.dates(1)-1,ts.dates(id(2:end))]);