matplotlib-users

 [Matplotlib-users] Subplot order From: Nicolas Bigaouette - 2007-01-15 14:09:17 ```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. ```
 Re: [Matplotlib-users] Subplot order From: Martin Richter - 2007-01-15 14:57:06 ```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 ```
 Re: [Matplotlib-users] Subplot order From: David Huard - 2007-01-15 16:19:19 Attachments: Message as HTML ```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 : > > 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.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ```