How does one disable the menu that appears when one hovers on a plot?

5 vues (au cours des 30 derniers jours)
Tahsin Emir Ersoy
Tahsin Emir Ersoy le 1 Nov 2022
Commenté : Benjamin Kraus le 21 Mar 2023
How do we remove this thing?
I want nothing to appear / disappear when I am hovering on my plot if possible.

Réponses (1)

Benjamin Kraus
Benjamin Kraus le 1 Nov 2022
You can set the Toolbar property on the axes when you create it.
ax = axes;
ax.Toolbar = [];
If you want that to be the default, you can add something like this to your startup.m.
set(groot,'DefaultAxesToolbarVisible',false);
  2 commentaires
FCKOU
FCKOU le 21 Mar 2023
does not work. Executed the command, figures still appear after I hover over them.
Benjamin Kraus
Benjamin Kraus le 21 Mar 2023
@FCKOU What release of MATLAB are you using?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Object Properties dans Help Center et File Exchange

Tags

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by