How to add and arrange a text in a plot using commands?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Vishnu
el 29 de Sept. de 2014
Comentada: Vishnu
el 29 de Sept. de 2014
How to add and arrange a text box in the plot by using commands in matlab?
0 comentarios
Respuesta aceptada
Mike Garrity
el 29 de Sept. de 2014
It's hiding in the annotation command.
h = annotation('textbox')
After you've created it, you can use the set command to change things.
set(h,'String','Something or other')
set(h,'Position',[.3 .8 .4 .1])
set(h,'HorizontalAlignment','center')
You can also pass those sets into the annotation command:
annotation('textbox','String','another one','FontSize',24)
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!