Is it possible to easily disable default interactivity for all axes?
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
set(groot, 'defaultAxesCreateFcn', @(ax,~) disableDefaultInteractivity(ax))
in startup.m would disable the default interactivity for all axes. This seems simple and practical. However, when using more recent versions of Matlab (e.g. R2020a) this no longer seems to work - the default interactivity will still be active in all figures, even if the axes creation function is adjusted as shown above. The code described here apparently works, but seems like a far more complicated way to achieve the same result. Is there a simpler / more direct way to do this in more recent versions of Matlab?
0 commentaires
Réponse acceptée
  Animesh
      
 le 16 Fév 2024
        For R2020b and later versions, the following command can be put in the “startup.m” file to disable the interactivity in plots. 
set(groot,'defaultAxesCreateFcn', @(ax,~) set(ax,'Interactions',[])); 
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Graphics Performance dans Help Center et File Exchange
			
	Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

