Re: [Matplotlib-users] multiplot in a for loop

2014-03-10 Thread Paul Hobson
Gabriele, I'm confused. I only see 1 series in each subplot. Could you trim your example down into some code that we can copy, paste, and run? A more thorough description of the problem might help too. -p On Mon, Mar 10, 2014 at 9:39 AM, Gabriele Brambilla gb.gabrielebrambi...@gmail.com wrote:

[Matplotlib-users] Fwd: multiplot in a for loop

2014-03-10 Thread Gabriele Brambilla
No, if you look better near the zero there are some COLOURED lines: you have this impression because the values in EcutS are enormous respect the other one in GAMMAs and Bees. When you plot them all together the other ones disappear... I don't want to plot them all together. Excuse me but it's

Re: [Matplotlib-users] multiplot in a for loop

2014-03-10 Thread Paul Hobson
So it sounds like you're not specifying the subplots correctly. I recommend using `fig, axes = plt.subplots(nrows=R, ncols=C)` as a replacement for `fig = plt.figure` and `fig.add_subplot()`. `axes` will be a numpy array of Axes objects through which you'll be able to loop along with your other

Re: [Matplotlib-users] multiplot in a for loop

2014-03-10 Thread Gabriele Brambilla
And how can I select in which position of the grid of plots put my errorbar plot? like axes[i].errorbar(...)? thanks Gabriele 2014-03-10 13:51 GMT-04:00 Paul Hobson pmhob...@gmail.com: So it sounds like you're not specifying the subplots correctly. I recommend using `fig, axes =

Re: [Matplotlib-users] multiplot in a for loop

2014-03-10 Thread Joe Kington
On Mar 10, 2014 1:00 PM, Gabriele Brambilla gb.gabrielebrambi...@gmail.com wrote: And how can I select in which position of the grid of plots put my errorbar plot? like axes[i].errorbar(...)? Exactly. Except that axes will be a 2d array if you have multiple rows and columns, so it would be

Re: [Matplotlib-users] multiplot in a for loop

2014-03-10 Thread Gabriele Brambilla
thank you guys, it works very well! Gabriele 2014-03-10 14:07 GMT-04:00 Joe Kington joferking...@gmail.com: On Mar 10, 2014 1:00 PM, Gabriele Brambilla gb.gabrielebrambi...@gmail.com wrote: And how can I select in which position of the grid of plots put my errorbar plot? like