Text properties

조회 수: 1 (최근 30일)
john
john 2012년 5월 5일
Hi, how can I change text properties? I mean fonr angle.
For "File" I need Normal angle, for "FileName" I need Italic and for "is loaded" I need normal.
It is possible?
set(handles.text, 'String',['File',FileName,' is loaded']);
Thank you

답변 (1개)

Wayne King
Wayne King 2012년 5월 5일
figure
text(0.4,0.5,'\rm{File} \it{filename} \rm{is loaded}')
  댓글 수: 1
john
john 2012년 5월 5일
Hi,
Your code makes figure with x,y axes and with text....
is possible to change your code for handles.text? I need print only text without axes.

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

카테고리

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