Skip to content

Commit

Permalink
swap standard deviations so that men's means are shown with men's std…
Browse files Browse the repository at this point in the history
…dev and vice versa

It appears as if someone accidentally swapped the standard deviations of men and women in this example.
  • Loading branch information
eglassman committed Jul 10, 2015
1 parent 16c125e commit 6abbee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pylab_examples/bar_stacked.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
ind = np.arange(N) # the x locations for the groups
width = 0.35 # the width of the bars: can also be len(x) sequence

p1 = plt.bar(ind, menMeans, width, color='r', yerr=womenStd)
p1 = plt.bar(ind, menMeans, width, color='r', yerr=menStd)
p2 = plt.bar(ind, womenMeans, width, color='y',
bottom=menMeans, yerr=menStd)
bottom=menMeans, yerr=womenStd)

plt.ylabel('Scores')
plt.title('Scores by group and gender')
Expand Down

0 comments on commit 6abbee6

Please sign in to comment.