Y=cool(8); subplot(221);bar3(Y,'detached');title('Detached'); subplot(222);bar3(Y,'grouped');title('Grouped'); subplot(223);bar3(Y,'stacked');title('Stacked'); subplot(224);bar3(Y,0.3,'stacked');title('Stacked'); colormap([1,0,0;0,1,0;0,0,1])