Text properties

3 次查看(过去 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 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by