Clear Filters
Clear Filters

When zooming in figures, Matlab automatically changes the zoom factor to fill the whole plot area

3 views (last 30 days)
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

Answers (1)

Simon Haine
Simon Haine on 27 Apr 2018
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.

Categories

Find more on Data Exploration in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!