Why can I not zoom on my data?
2 views (last 30 days)
Show older comments
Good afternoon, I am trying to zoom on some data in a plot. They are data at 200Hz, and I want to zoom on 7s. For some reasons, Matlab select a longer range of data(it looks like 15s, and its center the 7 chosen seconds). I cannot also zoom with the mouse on the x axis of the picture. Here is the code I am using:
datenummin=datenum(2012,4,30,15,19,0);
datenummax=datenum(2012,4,30,15,19,7);
dateplot=datenummin:1/24/60/60:datenummax;
plot(Time, data)
set(gca,'XTick',dateplot,'FontSize',24)
datetick('x','SS','keepticks')
axis([datenummin datenummax 0 3])
Many thanks for your help!
0 Comments
Accepted Answer
Jan
on 29 Jan 2013
Please try what happens, if the period of time is not in 2012, but in the year 0.
The OpenGL renderer uses single data and this could limit the resolution of the displayed values. Please test which renderer is used:
get(gcf, 'Renderer')
0 Comments
More Answers (1)
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!