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 the
Thanks to all for the replies :)
I used a tuple to solve the problem because I dind't manage to reshape
my array since it comes from a previous slicing, but not it seems to work.
Is it the same problem because this doesn't work ?
from pylab import *
y=array([[ 1.02], [ 1.05], [ 1.03], [ 0.99], [
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)
Hello to all
I've discovered Numpy and Matplotlib two weeks ago and I'm trying to
free myself to the slavery of Matlab (TM) ;) and I'm converting all my
small sotware about chemometrics in python (and I will be happy to
release them soon to the community)
I've searched a bit in the mailing list