Can I lock the Y axis (Even when the Zoom In/Out is used)?
56 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Nimrodb
2013-3-8
2 个评论
raym
2022-12-10
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
2022-12-10
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
更多回答(1 个)
Jan
2013-3-4
Yes, there is a zoom button in the figure's toolbar.
zoom yon
another idea is to set the axes 's 'YLim' property directly.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!