Colouring stacked bar chart
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Is there a way to make it so that different sections of the bar are filled differently? Ideally I'd like to make a part of the bar hatched or similar (something that retains the colour) to indicate some information - is this possible?
Thanks, Tom
0 件のコメント
採用された回答
Ned Gulley
2011 年 4 月 14 日
Example:
Y = [5 1 2
8 3 7
9 6 8
5 5 5
4 2 3];
bar(Y,'stack')
colormap(summer)
applyhatch_pluscolor(gcf,'\/|',true)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Bar Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!