I still get the error
ValueError: arrays must have same number of dimensions
at line 587 in collections.py

This is on Windows.


On Tue, Jul 27, 2010 at 11:42 AM, Eric Firing <[email protected]> wrote:
> On 07/27/2010 08:14 AM, Mathew Yeates wrote:
>> I installed matplotlib 1.0 and now I get a different error
>> s=[0,0,8,8]
>> ys=[0,8,8,0]
>> verts=zip(xs,ys)
>> poly = PolyCollection(verts)
>>
>> fails at line 587 in collections because
>> xy = array([0, 0]) # xy.shape = (2,)
>> and line 587 says xy = np.concatenate([xy, np.zeros((1,2))])
>>
>> What do I do?
>
> With 1.0:
>
> In [8]: verts
> Out[8]: [(0, 0), (0, 8), (8, 8), (8, 0)]
>
> In [9]: p = PolyCollection([verts])
>
> Eric
>
>>
>> -Mathew
>>
>>
>> On Tue, Jul 27, 2010 at 9:51 AM, Mathew Yeates<[email protected]>  wrote:
>>> why doesn't this work?
>>> xs=[0,0,8,8]
>>> ys=[0,8,8,0]
>>> verts=zip(xs,ys)
>>> poly = PolyCollection(verts)
>>>
>>>
>>> I tried
>>> poly = PolyCollection([verts]) but that doesn't work either
>>>
>>> -Mathew
>>>
>>
>> ------------------------------------------------------------------------------
>> The Palm PDK Hot Apps Program offers developers who use the
>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>> of $1 Million in cash or HP Products. Visit us here for more details:
>> http://ad.doubleclick.net/clk;226879339;13503038;l?
>> http://clk.atdmt.com/CRS/go/247765532/direct/01/
>> _______________________________________________
>> Matplotlib-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to