More than 9 subplots in Figure?

subplot accepts a tuple in other places, so I would have

    > expected the same behaviour here. Is this a bug that is
    > fixed in a newer matplotlib version, in which case I will
    > try to upgrade. Or, is there some other way to do my code
    > 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.

JDH

That works. Thank you very much.

Kevin Horton
Ottawa, Canada

···

On 4 Sep 2006, at 10:54, John Hunter wrote:

    > subplot accepts a tuple in other places, so I would have
    > expected the same behaviour here. Is this a bug that is
    > fixed in a newer matplotlib version, in which case I will
    > try to upgrade. Or, is there some other way to do my code
    > 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.