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

2 次查看(过去 30 天)
'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.

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2019-5-15
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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

标签

尚未输入任何标签。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by