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

Skip to content

Commit 6abbee6

Browse files
committed
swap standard deviations so that men's means are shown with men's stddev and vice versa
It appears as if someone accidentally swapped the standard deviations of men and women in this example.
1 parent 16c125e commit 6abbee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pylab_examples/bar_stacked.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
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, color='r', yerr=womenStd)
15+
p1 = plt.bar(ind, menMeans, width, color='r', yerr=menStd)
1616
p2 = plt.bar(ind, womenMeans, width, color='y',
17-
bottom=menMeans, yerr=menStd)
17+
bottom=menMeans, yerr=womenStd)
1818

1919
plt.ylabel('Scores')
2020
plt.title('Scores by group and gender')

0 commit comments

Comments
 (0)