matlab title 颜色,Matlab 命令行设置颜色和legend,保存图像,设置title。。。

i=10;

goodput=(i-1)*5+2;

rtt=goodput+1;

lossrate=rtt+1;

qpm=lossrate+1;

total_request=qpm+1;

figure

h6=plot(asn12322_smoothed(:,goodput)*100/max(asn12322_smoothed(:,goodput)),'--r');

hold on;

h7=plot(asn12322_smoothed(:,rtt)*100/max(asn12322_smoothed(:,rtt)),'-b');

h8=plot(asn12322_smoothed(:,lossrate)*100/max(asn12322_smoothed(:,lossrate)),'--g');

h9=plot(asn12322_smoothed(:,qpm)*100/max(asn12322_smoothed(:,qpm)),'-k');

h10=plot(asn12322_smoothed(:,total_request)*100/max(asn12322_smoothed(:,total_request)),'-y');

leg=legend([h6,h7,h8,h9,h10],'goodput','rtt','lossrate','qpm','total\_request\_kbps');

%leg=legend([h1,h2,h3,h4,h5,h6,h7,h8,h9,h10],'goodput','rtt','lossrate','qpm','total\_request\_kbps','smoothed goodput','smoothed rtt','smoothed lossrate','smoothed qpm','smoothed total\_request\_kbps');

grid on;

set(leg,'Location','EastOutside');

title(pathname(i,1));

filename=strcat('plots/path',num2str(i),'_metrics_smoothed.pdf');

set(gcf,'PaperUnits','points')

set(gcf,'PaperSize',[880,480])

set(gcf,'PaperPositionMode','manual')

set(gcf,'PaperPosition',[0 0 880 480])

print(gcf,'-dpdf',filename);

filename=strcat('plots/path',num2str(i),'_metrics_smoothed.fig');

savefig(filename);

close(gcf);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值