Put text in a figure that is not a graph/plot

7 visualizaciones (últimos 30 días)
Marco
Marco el 12 de Oct. de 2012
Hi,
How can I write a text in a graphic object (no plot) ?
I tried with
uicontrol('Style', 'text',...
but the text is inside a white rectangle. How can I write it in figure without some kind of labels as background ?
thanks

Respuestas (1)

Matt Fig
Matt Fig el 12 de Oct. de 2012
Your description is vague.
U = uicontrol('style','edit',...
'units','norm',...
'pos',[0 0 1 1],...
'string','type here',...
'min',0,'max',10);
uicontrol(U)
  2 comentarios
Marco
Marco el 13 de Oct. de 2012
But how can I type without editing mode (static text) and without white text rectangles?
Marco
Marco el 13 de Oct. de 2012
Ok. I used Matt code but I replaced "edit" with "text" and it works and there is not white rectangle. Thanks

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by