How can I plot bar graphs with patterns on them using the BAR function in MATLAB?
26 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 10 Nov. 2009
Bearbeitet: MathWorks Support Team
am 27 Apr. 2023
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.
Akzeptierte Antwort
MathWorks Support Team
am 27 Apr. 2023
Bearbeitet: MathWorks Support Team
am 27 Apr. 2023
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 Kommentar
Subin Kuttappan Stellal Mary
am 3 Mär. 2016
Bearbeitet: MathWorks Support Team
am 27 Apr. 2023
Refer the MathWorks blog by Jiro Doke :
The above link explains about creating Hatched Patches, with an example.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!