On Thu, Jul 13, 2006 at 07:45:37AM -0500, John Hunter wrote: > >>>>> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: > Eric> To reply more directly to your proposal now that I have > Eric> thought about it more: although I see the logic in it, I > Eric> don't see much gain from your Nx2 idea; it not very hard to > Eric> simply write P.plot(z[:,0], z[:,1]). Furthermore, > > And with the new .T attribute in numpy, you can do > > from numpy import rand > X = rand(20,2) > plot(*X.T)
Except that rand is no longer in the numpy namespace :) One reason why I don't like this syntax is that you can't use further arguments or keywords easily: def foo(a,b,c,keyw="asd"): print a,b,c,keyw x = ['1','2','3] foo(*x) # works fine foo(*x,"123") # breaks foo(*x,keyw="123") # breaks foo(*x,**{'keyw'="123"}) # works But I guess you can always plot first and adjust parameters later. Cheers Stéfan ------------------------------------------------------------------------- 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