|
From: Nicolas G. <nic...@ne...> - 2005-06-14 05:55:02
|
On Tuesday 14 June 2005 00:56, Sebastian Haase wrote: > Hi, > using generators the fuction would go like this: > def subplots(numRows,numCols): > cnt = 0 > for i in range(numRows): > for j in range(numCols): > cnt+=1 > ax=subplot(numRows,numCols,cnt) > yield ax > > right ? > > - Sebastian Yes, exactly. I'd be interested in having your opinion on the convenience of this vs the standard use of subplot()... cheers, nicolas |