Giorgio Luciano wrote:
[...]
############## it doesnt'works
##womenStd = array([[3.1], [5.1], [2.3], [3.5], [3.4]])
##N=5
##womenMeans = array([[20], [35], [30], [35], [27]])
##ind = arange(N) # the x locations for the groups
##width = 0.35 # the width of the bars: can also be len(x) sequence
##p1 = bar(ind, womenMeans, width, color='r', yerr=womenStd)
The problem is that you are creating 2-D arrays where you need simple
lists or 1-D arrays. See attached script.
Eric
from pylab import *
womenStd = array([3.1, 5.1, 2.3, 3.5, 3.4]) ## or don't even bother making it an array
womenMeans = array([20, 35, 30, 35, 27]) ## same
ind = arange(len(womenMeans)) # the x locations for the groups
width = 0.35 # the width of the bars: can also be len(x) sequence
p1 = bar(ind, womenMeans, width, color='r', yerr=womenStd)
show()
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users