Set DataTipTemplate for a Plot with multiple lines by only one line of code

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

 Respuesta aceptada

Hey Nico,
This does it
plot(magic(3));
ax = gca;
dataTips = findall(ax, "type", "datatip")
set(dataTips, "Interpreter", "none")

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Productos

Versión

R2023a

Preguntada:

el 24 de Mayo de 2024

Respondida:

el 24 de Mayo de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by