On 4 Sep 2006, at 10:54, John Hunter wrote: >>>>>> "Kevin" == Kevin Horton <[EMAIL PROTECTED]> writes: > Kevin> subplot accepts a tuple in other places, so I would have > Kevin> expected the same behaviour here. Is this a bug that is > Kevin> fixed in a newer matplotlib version, in which case I will > Kevin> try to upgrade. Or, is there some other way to do my code > Kevin> that will work? > > You need to either do > > subplot(10,1,1) > > or > > tup = 10,1,1 > subplot(*tup) > > subplot does not accept a tuple: it either accepts and integer, eg > > num = 311 > subplot(num) > > or three args: numrows, numcols, num > > python let's you "unpack" tuple with the "*" operator.
That works. Thank you very much. Kevin Horton Ottawa, Canada ------------------------------------------------------------------------- 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