>> import pylab as pb
>> vals = [ [1,2,3,4,5], [10,20,30,40]]
>> pb.boxplot( vals)
>> pb.show()
>>
>> This gives:
>> Traceback (most recent call last): ...
>> ValueError: setting an array element with a sequence.

I had this problem just recently... It wasn't so much the box plot as
the numpy array.  I ended up plotting a list of numpy arrays of
different lengths, rather than a single 2 dimensional array.  Try:

vals = [numpy.array([1,2,3,4,5]),numpy.array([10,20,30,40])]

and see if it works?

Eric

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to