Is it possible to programmatically suppress figure roll-over menu (zoom, rotate, etc)?
Afficher commentaires plus anciens
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?

Réponse acceptée
Plus de réponses (2)
Davide Masiello
le 28 Juil 2023
Modifié(e) : Davide Masiello
le 28 Juil 2023
This should work, but it also suppresses the fixed toolbar above the figure
f = figure;
f.ToolBar = 'none';
1 commentaire
Robert
le 28 Juil 2023
Voss
le 28 Juil 2023
Data exploration toolbar, which is an AxesToolbar object. The toolbar appears at the top-right corner of the axes when you hover over it.
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';
Catégories
En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!