Black and Grey Bars in Barplot
조회 수: 12 (최근 30일)
이전 댓글 표시
Hello,
I have a barplot with two groups plotted next to each other (see code below). I cannot for the life of me get the bars to be black and white - they are always printing as the default red/blue, despite what I think is code that should work. Any help is much appreciated. Thank you!
subplot(2,2,1)
clr = [0 0 0; 0.9 0.9 0.9];
colormap(clr);
a = [percentsQ1' percentsQ1N'];
bar(a);
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!