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

7 次查看(过去 30 天)
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

采纳的回答

Mario Malic
Mario Malic 2024-5-24
Hey Nico,
This does it
plot(magic(3));
ax = gca;
dataTips = findall(ax, "type", "datatip")
set(dataTips, "Interpreter", "none")

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by