Why doesn't zoom off work for scrolling in the MATLAB R2018b Prerelease?

2 views (last 30 days)
'zoom off' does not disable zooming via scrolling in the R2018b Prerelease.
Reproduction steps:
plot(1:10)
% put mouse over axes and scroll to zoom
zoom off
% put mouse over axes and notice we are still able to zoom via scrolling
In R2018a, 'zoom off' would disable zooming via scrolling. Note that in the R2018b Prerelease, 'zoom off' still disables zooming via clicking, just not scrolling.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 May 2019
Edited: MathWorks Support Team on 15 May 2019
In MATLAB R2018b, panning, zooming, data tips, and 3-D rotation are enabled by default. To disable this, you can use the 'disableDefaultInteractivity' function. So, for example, to disable interactivity for the current axes, you can do,
disableDefaultInteractivity(gca)
To enable them again, you can do
enableDefaultInteractivity(gca)

More Answers (0)

Categories

Find more on Visual Exploration in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!