From 6abbee61cd6e693e8519ff55a529f7475b1ca7dc Mon Sep 17 00:00:00 2001 From: Elena Glassman Date: Fri, 10 Jul 2015 11:29:36 -0700 Subject: [PATCH] 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. --- examples/pylab_examples/bar_stacked.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pylab_examples/bar_stacked.py b/examples/pylab_examples/bar_stacked.py index d8be34b11926..64b915b11ebd 100644 --- a/examples/pylab_examples/bar_stacked.py +++ b/examples/pylab_examples/bar_stacked.py @@ -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')