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 : > > 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].err

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 wou

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 : > So it sounds like you're not specifying the subplots correctly. > > I recommend using `fig, axes = plt.subplots(nrows=R, nco

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 v

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