Problem with plotyy and grid

1 次查看(过去 30 天)
Adrien
Adrien 2012-3-13
Hello everyone,
I have a problem with plotyy function. Because, when my figure appear, I want the make a zoom on it, but when I use zoom tool, the scale of x and y axes not update. As you know, in plot function, when you make a zoom, Matlab update y ticks to have more ticks !! When I use classical plot that's working well !! why ??
Thanks very much

回答(2 个)

Jacob Halbrooks
Jacob Halbrooks 2012-3-13
It looks like zooming in a PLOTYY axes is known to be problematic and lead to tick marks disappearing. If this functionality is important to you, I'd suggest trying the PLOTYY or ZOOM utilities contributed to the File Exchange.

Adrien
Adrien 2012-3-19
With zoom utilities, that works better, but the problem is not on Plotyy function (after some test) that's because of xticks which are in date format, that's why when I want to zoom in that don't work. Now I use zoomAdaptiveDateTicks, that works but I can't change the date ticks format, like 'yyyy:mm:dd HH:MM:SS'. If someone know how to do that ??
Thanks

类别

Help CenterFile Exchange 中查找有关 Two y-axis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by