why the text doesn't show on the plot?

8 visualizaciones (últimos 30 días)
Niloufar Baba adam
Niloufar Baba adam el 20 de Dic. de 2020
Comentada: Niloufar Baba adam el 20 de Dic. de 2020
Hi every one
I am using the text on plot with code:
str={'SyR=0.5'};
text(-4,4,str,'FontSize', 8);
the x limitation is ([-5 5]), and y limitation is ([0.2 7])
but the text doesn't show on the plot.
could you help me to solve this problem?
Thank you
  6 comentarios
Walter Roberson
Walter Roberson el 20 de Dic. de 2020
Good point, Mathieu: if hold is not on then plot() will remove the current plot. You can, though, text() then hold on then plot()
Niloufar Baba adam
Niloufar Baba adam el 20 de Dic. de 2020
thank you all of you guys
the problem was about coming plot befor text

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by