On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath <[email protected]> wrote:
> So I have to instantiate GridSpec with a (rows, column), but when I
> index the grid I have to use (column, row).
>
> Is there any reason for this counterintuitive behaviour?
>
This is not an intended behavior but a bug which affects a grid of
non-square shape.
This has been fixed in the svn version.
Meanwhile, you may use 1-d indexing. e.g.,
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
gs = GridSpec(3, 4)
for irow in range(3):
for icol in range(4):
ax = plt.subplot(gs[irow*4+icol])
Regards,
-JJ
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users