Set DataTipTemplate for a Plot with multiple lines by only one line of code
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nico
le 24 Mai 2024
Réponse apportée : Mario Malic
le 24 Mai 2024
Hi there,
in my App-Figure I plot multiple lines and want to change the default 'DataTipTemplate.Interpreter' to 'none' instead of 'tex'.
I found a way to do this for every line seperately, but this would be unnecessary much code and I don't want my app to become slower because of this.
So my question is if there is a way to set the DataTipTemplate.Interpreter maybe with one line of code?
Thanks
Nico
0 commentaires
Réponse acceptée
Mario Malic
le 24 Mai 2024
Hey Nico,
This does it
plot(magic(3));
ax = gca;
dataTips = findall(ax, "type", "datatip")
set(dataTips, "Interpreter", "none")
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Scatter Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!