[Matplotlib-users] subplots [xy]labels

2013-01-04 Thread giacomo . boffi
two plots in a figure: from pylab import * ... f,a = subplots(nrows=2, sharex=False, sharey=False) a[0].plot(x,f0(x)) ylabel('f1') xlabel('t') ... a[1].plot(x,f1(x)) ylabel('f2') xlabel('t') ... show()

Re: [Matplotlib-users] subplots [xy]labels

2013-01-04 Thread Alex Goodman
Hi Giacomo, Try using the set_ylabel() and set_xlabel() methods for each Axes instance instead, eg: a[0].set_ylabel('f1') a[0].set_xlabel('t') a[1].set_ylabel('f2') a[1].set_xlabel('t') On Fri, Jan 4, 2013 at 5:44 AM, giacomo.bo...@polimi.it wrote: two plots in a figure:

Re: [Matplotlib-users] subplots [xy]labels

2013-01-04 Thread giacomo . boffi
Alex Goodman goodm...@illinois.edu writes: Try using the set_ylabel() and set_xlabel() methods for each Axes instance instead, eg: a[0].set_ylabel('f1') ... works as intended, tx Alex -- Master HTML5, CSS3,