John Hunter wrote:
>>>>>>"Eric" == Eric Firing <[EMAIL PROTECTED]> writes:
> 
> 
>     Eric> Where breakage will occur is any place in user code that
>     Eric> expects the collection segments or vertices to be lists of
>     Eric> tuples and tries to append to the list, for example.  I
>     Eric> don't know of any way to make the move towards use of arrays
>     Eric> without this problem cropping up; I hope it is considered
>     Eric> tolerable.
> 
> If I'm understanding you correctly:  Users who create the collection
> themselves with the list of xy tuples approach can still modify their
> lists, eg with append, and not have breakage (I actually use this
> feature).  But users who are getting collections back from code like
> contour will get the non-modifiable array version.
> 
> 

John,

Yes, that is the way it is supposed to work.  The collection stores and 
  uses whichever form it is given.  This can work because the XY array 
is very similar to the [(x,y), (x,y)...] form; both are single objects, 
and they behave the same when one says, "for xy in XY:", or if one calls 
the array constructor with either as an argument.

Eric

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to