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

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

回答 (1 件)

Matt Fig
Matt Fig 2012 年 10 月 12 日

0 投票

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 件のコメント

Marco
Marco 2012 年 10 月 13 日
But how can I type without editing mode (static text) and without white text rectangles?
Marco
Marco 2012 年 10 月 13 日
Ok. I used Matt code but I replaced "edit" with "text" and it works and there is not white rectangle. Thanks

サインインしてコメントする。

カテゴリ

製品

タグ

質問済み:

2012 年 10 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by