Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2142b75

Browse files
committed
doc: Set stacked bar example to different colours.
Otherwise, without the edge lines, it's just a couple of error bars in the middle of the longer bar.
1 parent 9208b5e commit 2142b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/bar_stacked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ind = np.arange(N) # the x locations for the groups
1313
width = 0.35 # the width of the bars: can also be len(x) sequence
1414

15-
p1 = plt.bar(ind, menMeans, width, yerr=menStd)
15+
p1 = plt.bar(ind, menMeans, width, color='#d62728', yerr=menStd)
1616
p2 = plt.bar(ind, womenMeans, width,
1717
bottom=menMeans, yerr=womenStd)
1818

0 commit comments

Comments
 (0)