Setting plot zoom mode?
10 次查看(过去 30 天)
显示 更早的评论
If you right click on a plot and go to zoom mode, it is defaulted to unconstrained zoom, with horizontal and vertical as choices. Is there any way to change this default?
0 个评论
采纳的回答
Wayne King
2011-10-15
You can set the behavior through the zoom command. See the help. For example, to zoom just in the horizontal direction.
plot(randn(100,1));
h = zoom;
set(h,'Motion','horizontal','Enable','on');
1 个评论
更多回答(0 个)
另请参阅
类别
在 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!