Stefan van der Walt wrote: > On Tue, Jul 11, 2006 at 10:53:59PM -0400, Charlie Moad wrote: > >>2006-06-22 Added support for numerix 2-D arrays as alternatives to >> a sequence of (x,y) tuples for specifying paths in >> collections, quiver, contour, pcolor, transforms. >> Fixed contour bug involving setting limits for >> color mapping. Added numpy-style all() to numerix. - EF > > > It would be useful to have plot accept a 2-D array as well. Would > patches for this be considered, or is there some reason why this can't > work? At the moment, doing > > P.plot(z) where z is Nx2, > > raises > > RuntimeError: xdata and ydata must be the same length > > So it doesn't look as though this functionality will override any > current feature.
Stefan, To reply more directly to your proposal now that I have thought about it more: although I see the logic in it, I don't see much gain from your Nx2 idea; it not very hard to simply write P.plot(z[:,0], z[:,1]). Furthermore, implementing your idea would not conflict with present behavior, but it would interfere with an alternative version of fancy argument handling that I think would be much more generally useful. 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-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users