Is it possible to programmatically suppress figure roll-over menu (zoom, rotate, etc)?
2 ビュー (過去 30 日間)
古いコメントを表示
When a Matlab Figure is open, a roll-over graphical menu appears when the cursor is in a certain area. (See image. Suppress the contents of the red box.) Is it possible to programmatically suppress it regardless of cursor position? If so, how?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1444257/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1444257/image.jpeg)
0 件のコメント
採用された回答
Bruno Luong
2023 年 7 月 28 日
ax = gca; % your axe handle if you can get it other than gca
set(ax,'Interactions',[])
2 件のコメント
Bruno Luong
2023 年 7 月 28 日
Not exactly the same it removes also the figure toolbar which is not the axes interactive icons you hightlight and appears when the mouse hanging over this area (what an anoying feature IMO).
その他の回答 (2 件)
Davide Masiello
2023 年 7 月 28 日
編集済み: Davide Masiello
2023 年 7 月 28 日
This should work, but it also suppresses the fixed toolbar above the figure
f = figure;
f.ToolBar = 'none';
Voss
2023 年 7 月 28 日
Data exploration toolbar, which is an AxesToolbar object. The toolbar appears at the top-right corner of the axes when you hover over it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1444567/image.png)
The toolbar buttons depend on the contents of the axes, but typically include zooming, panning, rotating, data tips, data brushing, and restoring the original view. You can customize the toolbar buttons using the axtoolbar and axtoolbarbtn functions.
If you do not want the toolbar to appear when you hover over the axes, set the Visible property of the AxesToolbar object to 'off'.
ax = gca;
ax.Toolbar.Visible = 'off';
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interaction Control についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!