Matlab双纵轴

 x=[0.5,0.3,0.2,0.1];

y=[540,430,420,340];

z=[1340,1270,1210,1150];

[ax,h1]=plotyy(x,y,x,z,@bar,@bar);

set( get(ax(2),'Children'),'facecolor','g')

set( get(ax(2),'Children'),'barwidth',0.2)

set( get(ax(1),'Children'),'barwidth',0.4)

向左转 | 向右转


猜你喜欢

转载自blog.csdn.net/it_beecoder/article/details/80334271