Alan G Isaac wrote: > On Wed, 12 Jul 2006, Stefan van der Walt apparently wrote: > >>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 > > > If 2-D is allowed, > I hope N×K is allowed, > not just N×2.
I have thought about this, but haven't gotten around to doing it. To do the whole job, we could handle a single NxK argument, and we could also handle pairs: Nx1, NxK NxK, Nx1 NxK, NxK I think it is clear what the behavior should be with any of the pairs; essentially they should be broadcast to the NxK, NxK case, resulting in K lines. In the single-argument NxK case, I think matlab plots subsequent columns against the first column. Is this what you would like? The alternative would be to plot each column against the row index, which is what happens in the Nx1 case, but I suspect the matlab-compatibility argument wins out here. Also, this maintains consistency with the original request for Nx2, which I assume was for plotting the second column against the first. I certainly would not want to have NxK behavior change as K goes from 2 to values larger than 2. 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