bug in zoom in timeseries plot
1 view (last 30 days)
Show older comments
before i report a bug i want to ask if someone have a problem with the zoom button on a timeseries plot.
i create a time-series and add to the figure a regular plot (not a time-series).
when i zoom in the first time its work like expected but when i zoom again, when i push the left click, the plot change to be the all plot not the zoomed plot. it append in R2014b version not in perceive version and only when i add a regular plot to a time-series.
i add a code that you can run to test it. please report if you get the same bug.
timeVec = (73594:1/24/60:73595)';
DataVec = rand(length(timeVec),2);
figure(6),clf
ts1 = timeseries(cumsum(2.*DataVec(:,2)-1),timeVec(:,1));
ts1.Name = 'Rand';
ts1.TimeInfo.Units = 'days';
ts1.TimeInfo.StartDate=timeVec(1,1);
ts1.TimeInfo.Format = 'mm-dd HH:MM';
ts1.Time=ts1.Time-ts1.Time(1);
plot(ts1,'k-');
hold on;
plot(timeVec(:,1),cumsum(2.*DataVec(:,1)-1),'r')
0 Comments
Answers (0)
See Also
Categories
Find more on Time Series in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!