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!