Z=[15,35,10;20,10,30]
subplot(2,2,1); h1=bar3(Z,'detached');
set(h1,'FaceColor','W');title('分离式柱状图')
subplot(2,2,2); h2=bar3(Z,'grouped');
set(h2,'FaceColor','W');title('分组式柱状图')
subplot(2,2,3); h3=bar3(Z,'stacked');
set(h3,'FaceColor','W');title('叠加式柱状图')
subplot(2,2,4); h4=bar3(Z);
set(h4,'FaceColor','W');title('水平放置的三维柱状图')
评论9