Effacer les filtres
Effacer les filtres

Text in 3D plot

195 vues (au cours des 30 derniers jours)
Amit Kalhapure
Amit Kalhapure le 8 Avr 2013
Hi, I want to insert text in a 3D plot and for that I'm using following command.
text(x1(i,1),y1(i,1),z1(i,1),num2str(time(i,1)),'HorizontalAlignment','left','FontSize',8);
My problem is, the point in 3D plot is overlapped by the text. I want the point and its respective text should be separated enough to be identified clearly. Can anybody help me?
Amit.

Réponse acceptée

Jonathan Epperl
Jonathan Epperl le 9 Avr 2013
How about adding a few whitespaces to your string, like so:
text(x1(i,1),y1(i,1),z1(i,1),[' ' ...
num2str(time(i,1))],'HorizontalAlignment','left','FontSize',8);
  1 commentaire
Amit Kalhapure
Amit Kalhapure le 9 Avr 2013
Yes it works. Thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by