How can I plot bar graphs with patterns on them using the BAR function in MATLAB?
조회 수: 27 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2009년 11월 10일
편집: MathWorks Support Team
2023년 4월 27일
I would like to know how can I plot bar graphs with patterns on them so that I can distinguish among them when I plot the bars in gray scale. For example
Y = round(rand(5,10)*10);
colormap(gray);
bar(Y,'group')
The bars would be more distinguishable if they had patterns on them.
채택된 답변
MathWorks Support Team
2023년 4월 27일
편집: MathWorks Support Team
2023년 4월 27일
The ability to plot bar graphs with patterns on the bars using the BAR function is not available in MATLAB.
There are several user-submitted contributions on the MATLAB Central File Exchange which help work around this issue. One such file can be found here:
Note that MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.
댓글 수: 1
Subin Kuttappan Stellal Mary
2016년 3월 3일
편집: MathWorks Support Team
2023년 4월 27일
Refer the MathWorks blog by Jiro Doke :
The above link explains about creating Hatched Patches, with an example.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!