wildgoat的个人空间 https://blog.eetop.cn/?6503 [收藏] [复制] [分享] [RSS]

日志

Change Font Size of Legends in Matlab

已有 2095 次阅读| 2011-8-11 11:33 |个人分类:Matlab

In order to change the font size for a MATLAB legend, use the SET command to change the 'FontSize' property of the legend object, as in the example below.

plot(rand(4))
h_legend=legend('One','Two','Three','Four');
set(h_legend,'FontSize',14);

In MATLAB 7.1 (R14SP3), saving the figure to file after changing the Font Size on the legend may revert the font sizes to the original size. To work around this, the following option can be used from the Command Window to print the figure to a file :

print -dbmp16m 'myfig.jpg'
(In fact i did not meet the second problem, i used print -depsc vgssweep_gmid_vgs.eps to print the figure to a eps file, and it worked well)

点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 129

    粉丝
  • 43

    好友
  • 359

    获赞
  • 122

    评论
  • 22212

    访问数
关闭

站长推荐 上一条 /1 下一条


手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 ) |网站地图

GMT+8, 2025-10-19 10:13 , Processed in 0.078576 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部