plotyy函数_plotyy函数参数设置[通俗易懂]
[ax,h1,h2]=plotyy(x,a,x,sig0);
set(ax,’Xlim’,[7.4,8.4],’XMinorGrid’,’on’)%設置x軸范圍,并顯示更細密的網格
set(h1,’color’,’k’,’linewidth’,1);%設置y1的顏色為黑色,線寬為1
set(h2,’color’,’r’,’linewidth’,1);%設置y2的顏色為紅色,線寬為1
set(get(ax(1),’Ylabel’),’string’,’SSHA/m’)%設置y軸的名稱
set(get(ax(2),’Ylabel’),’string’,’Sigma0/dB’)
set(ax(1),’ytick’,[-0.6:0.1:0.6])%設置y軸的取值范圍
set(ax(2),’ytick’,[10:1:20])
set(ax(1),’ycolor’,’k’,’fontsize’,14)%設置y軸顏色和字體大小
set(ax(2),’ycolor’,’r’,’fontsize’,14)
grid on
xlabel(‘Latitude/°N’)
% set(gca,’xscale’,’log’)
title([‘Cycle:’,Cycle,’ Pass:’,Pass])
set(gca,’fontsize’,14)
%設置圖片大小:set(gcf,’position’,[x1,y1,dx,dy]);
x1,y1是圖的左下角坐標(相對于整個屏幕),dx,dy是圖沿x,y方向的大小;
set(gcf,’position’,[10,300,2000,600]);
*************************************************************************************
% [AX,h1,h2] =
plotyy(t,z1,t,z2,’semilogy’,’plot’);
[AX,h1,h2] = plotyy(node,bconf,node,msd,’plot’,’plot’);
set(h1,’linestyle’,’:’,’marker’,’x’,’color’,’b’);%曲線的線型
%set(h1,’linestyle’,’-‘,’marker’,’o’,’color’,’g’);
set(h2,’linestyle’,’:’,’marker’,’x’,’color’,’r’);
set(get(AX(1),’Ylabel’),’string’,’Initial\_Bconf’);%x坐標軸名稱
set(get(AX(2),’Ylabel’),’string’,’MSD’);
set(get(AX(2), ‘Ylabel’),’Color’,’red’);
% set(AX(1),’yTick’,[0:10:350])
% set(AX(2),’yTick’,[0:10:350])
xlabel(‘MRF Node’);
title(‘Different Initial\_Bconf For Different MRF Nodes’);
set(gca,’ycolor’,’b’);%改變y坐標軸顏色
總結
以上是生活随笔為你收集整理的plotyy函数_plotyy函数参数设置[通俗易懂]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 哈达玛(Hadamard)积
- 下一篇: apache安装教程详解_Apache安