How to explicitly change the colors of the bars in a stacked bar graph?
I would like to create a bar plot with each bar of different color. For the example below, I want to have 9 different colors, instead of each column of the matrix having a different number.
Is it possible?
a = [1,3,6;2,5,6;8,2,1]H=bar(a, 'stacked');
Best Answer