Re: [Matplotlib-users] error bar and arrays (tuple way to solve a problem)

2006-12-05 Thread Eric Firing
Again, the problem with the sample you supply is that you are making 2-D arrays where what you need are 1-D arrays. Simply flattening y and pred before using them makes the script work fine, as attached. Or make them 1-D in the first place. Eric Giorgio Luciano wrote: Thanks to all for

Re: [Matplotlib-users] error bar and arrays (tuple way to solve a problem)

2006-12-04 Thread Eric Firing
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