MATLAB: Bar graph comments/define colours

bar graphcommentstacked

Hello,
If i had a bar graph like this:
bar([1 2 3 ]',[4 5 6 ;6 7 8]','stacked')
How would i define the colour of the bar with a comments on the y axxis? for example
blue colour:'comment'
yellows colour: 'comment'
Thank you

Best Answer

legend({'comment for lower bar', 'comment for higher bar'})
Related Question