[Matplotlib-users] Subplot order

2007-01-15 Thread Nicolas Bigaouette
Hi,

I want to compare data and I am doing so with subplots. Ideally, I would
like the subplot command to fill the columns before filling the rows as
it is doing right now.
Now:
subpot(221) = 1st row, 1st column
subpot(222) = 1st row, 2nd column
subpot(223) = 2nd row, 1st column
subpot(224) = 2nd row, 2nd column
I'd like :
subpot(221) = 1st row, 1st column
subpot(222) = 2nd row, 1st column
subpot(223) = 1st row, 2nd column
subpot(224) = 2nd row, 2nd column

Anyone knows if this is possible?

Thank you.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Subplot order

2007-01-15 Thread Martin Richter
I think the easiest way would be using a dictionary:

d = {221:221, 222:223, 223:222, 224:224}

for i in arange(4):
subplot(d[i+221])
plot(arange(10))
text(0.5,0.5,'i=%d'%i)

Bye,
Martin

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Subplot order

2007-01-15 Thread David Huard

Salut Nicolas,

You can get by with something like:

a = arange(nrow*ncol)+1
indices = hstack(a.reshape(nrow, ncol).T)
for i in indices:
   subplot(nrow, ncol, i)
   ...

David


2007/1/15, Nicolas Bigaouette [EMAIL PROTECTED]:


Hi,

I want to compare data and I am doing so with subplots. Ideally, I would
like the subplot command to fill the columns before filling the rows as
it is doing right now.
Now:
subpot(221) = 1st row, 1st column
subpot(222) = 1st row, 2nd column
subpot(223) = 2nd row, 1st column
subpot(224) = 2nd row, 2nd column
I'd like :
subpot(221) = 1st row, 1st column
subpot(222) = 2nd row, 1st column
subpot(223) = 1st row, 2nd column
subpot(224) = 2nd row, 2nd column

Anyone knows if this is possible?

Thank you.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users