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

조회 수: 11 (최근 30일)
Marco
Marco 2012년 10월 12일
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일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by