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

3 ビュー (過去 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 日
編集済み: 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 Center および File ExchangeVisual Exploration についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by