Could someone please tell me How to plot dashline output in bar chart?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Phat Nguyen
am 12 Jun. 2021
Kommentiert: Phat Nguyen
am 12 Jun. 2021
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Chunru
am 12 Jun. 2021
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.
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!