Could someone please tell me How to plot dashline output in bar chart?
조회 수: 1 (최근 30일)
이전 댓글 표시
x = categorical({'U1','U2'});
y1 = [7500 7200];
yyaxis left;
bar(x,y1,0.4);
hold on;
y2 = [2000,3000];
yyaxis right;
plot(x,y2,'bo');
댓글 수: 0
채택된 답변
추가 답변 (1개)
Chunru
2021년 6월 12일
The following article has an example for hatched pattern for bar plot and you need download the hatchfill in file exchage.
Posted by Jiro Doke, July 15, 2011
796 views (last 30 days) | 2 Likes | 1 comment
Jiro's picks this week are hatchfill by Neil Tandon, applyhatch_pluscolor by Brandon Levey, and applyhatch_plusC by Brian Katz.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!