When zooming in figures, Matlab automatically changes the zoom factor to fill the whole plot area
8 次查看(过去 30 天)
显示 更早的评论
In Matlab 2015a, when using Zoom in tool in figures (magnifying glas with +), it was possible to drag outside the figure which resulted in zoom out. I found this very useful. E.g. when viewing EEG signal I found it often convenient to see the signal flatter than would vertically fill the axes. So I simply dragged a slim and tall rectangle (taller then the axes) which resulted in zoom in in the horizontal direction and zoom out in the vertical direction.
Now I have Matlab 2017b. If I use this trick to zoom out it does zoom out but not more than necessary so that the whole plot area is occupied by the plotted signal.
So e.g. if the vertical range of the signal is, say [-9, 9] Matlab 2017b never zooms out more then to y-axis limits [-10, 10] whereas in older Matlab it was possible to zoom out to any y-axis limits, e.g. [-50, 50] which I found very useful.
Is there a way to stop this new bevior so that Matlab 2017b zooms out regardless of the data in the plot?
Thank you for any advice
Jan Kudlacek
0 个评论
回答(1 个)
Simon Haine
2018-4-27
I agree that this was a useful feature, and I wish that they would bring it back. However, I found a workaround, which is if you the 'pan' feature (ie, the little hand symbol, or alternatively, select 'pan' from tools in the plot menu), you can move the displayed area of the plot beyond the specified limits. Furthermore, once you have done this, the zoom feature seems to return to it's old behaviour, ie, you can select a region beyond the limits of the displayed plot.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!