MTLAB中的legend和xlabel,ylabel设置

来源:互联网 发布:太平洋电脑软件下载 编辑:程序博客网 时间:2024/05/01 02:00

1)legend 去掉边框

h = legend('LINE 1','LINE 2','LINE 3');

set(h, 'box','off');

感觉需要配合location使用,不然去掉边框之后legend就不能随意移动了~


2)修改legend和xlable,ylabel的字体大小

set(gca,'FontName','Times New Roman','FontSize',14); 
set(get(gca,'XLabel'),'FontName','Times New Roman','FontSize',14);
set(get(gca,'YLabel'),'FontName','Times New Roman','FontSize',14);

0 0
原创粉丝点击