说明

后续补充!!!

开始

条形图

双纵轴条形图

W = 0.2;

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

xx = x + W/10;

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

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

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

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

set( get(ax(2),'Children'), 'barwidth', W)
set( get(ax(1),'Children'), 'barwidth', W)

Matlab 绘图笔记

相关文章: