Effacer les filtres
Effacer les filtres

how to control position of a displaied point value in plot

2 vues (au cours des 30 derniers jours)
Abdulaziz
Abdulaziz le 12 Juil 2014
Commenté : Star Strider le 13 Juil 2014
Hi all
When displaying a point value in a plot, the value always showed at the right side of the point. Is there any way to locate this value at the right side to avoid overlapping with the next curve. I have tried rotating it but the number will be upside down. I have tried these two methods
h1=text(x1(j(i),i),Dia(j(i),i),strcat(num2str(x1(j(i),i))));
*or* h1= text(x1(j(i),i),Dia(j(i),i), ['\leftarrow (', num2str(x1(j(i),i)), ';', num2str(Dia(j(i),i)), ')']);
*then* set(h1,'color','r','Rotation',5);
Thank you

Réponse acceptée

Star Strider
Star Strider le 12 Juil 2014
See the documentation for the HorizontalAlignment and VerticalAlignment properties in Text Properties
  4 commentaires
Abdulaziz
Abdulaziz le 13 Juil 2014
That works thank you Star
Star Strider
Star Strider le 13 Juil 2014
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D 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!

Translated by