scatter3 data tip : suppress "initial display" value?

2 visualizzazioni (ultimi 30 giorni)
Roger Breton
Roger Breton il 23 Dic 2021
Risposto: Voss il 23 Dic 2021
Is it possible to hide or suppress the initial data tip display?
This is what I have :
I am looking for a way to suppress or prevent the display of the data tip upon loading of the plot?

Risposte (1)

Voss
Voss il 23 Dic 2021
As far as I know, data tips only turn on if you turn them on (either programmatically or using the builtin MATLAB figure toolbar). So you should be able to just avoid doing that.
In a separate but related recent question, I found this code snippet that appears to be responsible for turning on a data tip:
% Redefine labels
h.DataTipTemplate.DataTipRows(1).Label = 'b'; % X
h.DataTipTemplate.DataTipRows(2).Label = 'a='; % Y
h.DataTipTemplate.DataTipRows(3).Label = 'L='; % Z
row = dataTipTextRow('DE76=',DE76(:));
h.DataTipTemplate.DataTipRows(end+1) = row;
% Show datatip
% Syntaxe: datatip(target,x,y,z)
datatip(h, h.XData(1),h.YData(1),h.ZData(1));
If this bit of code is still in your application, you can simply comment it out, or perhaps move it to where it should be (i.e., move it so that the data tip turns on when it should).

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by