Why can I not zoom on my data?

1 visualización (últimos 30 días)
V
V el 29 de En. de 2013
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!

Respuesta aceptada

Jan
Jan el 29 de En. de 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')

Más respuestas (1)

V
V el 29 de En. de 2013
Thanks! It works when using a period of time in year zero. It even works with different Renderers.

Categorías

Más información sobre Data Exploration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by