Can I lock the Y axis (Even when the Zoom In/Out is used)?
42 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nimrodb
el 4 de Mzo. de 2013
Comentada: raym
el 10 de Dic. de 2022
I have a plot and I want the user to not be able to change the Y axis. Is it possible?
Is there a call back option to the Zoom In/Out tool function?
0 comentarios
Respuesta aceptada
Nimrodb
el 8 de Mzo. de 2013
2 comentarios
raym
el 10 de Dic. de 2022
I tried both
zoom yon
and
ZoomHandle = zoom(h.Figure(1))
set(ZoomHandle,'Motion','horizontal')
it worked on live fig, but when fig is stored as .fig and re-opened, it still zooms in both direction when clicking zoom+ button.
Did you solve this problem?
raym
el 10 de Dic. de 2022
Got a solution here:
https://www.mathworks.com/matlabcentral/answers/405528-how-can-i-ensure-that-zoom-is-on-by-default-when-i-open-a-figure
Más respuestas (1)
Jan
el 4 de Mzo. de 2013
Yes, there is a zoom button in the figure's toolbar.
zoom yon
another idea is to set the axes 's 'YLim' property directly.
2 comentarios
Ver también
Categorías
Más información sobre Data Exploration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!