Hi all,

when using subplot is very easy to plot an ylabel for each subplot

(see http://matplotlib.sourceforge.net/screenshots/subplot_demo_large.png

for example), however I have not found any sample to accomplish the

same goal when using sub-figures obtained as

ax1 = axes(...)

like http://matplotlib.sourceforge.net/screenshots/finance_work2_small.png,

for example.

With gnuplot is very easy. Is there any way to achieve the same result

with matplotlib?

Thanks,

Michele

Not sure I understand your question, but

ax.set_ylabel('my label')

will work for Axes or Subplots (a Subplot is an Axes instance...)

JDH

## ···

On 5/11/07, Michele Mazzucco <michelemazzucco@...287...> wrote:

Hi all,

when using subplot is very easy to plot an ylabel for each subplot

(see http://matplotlib.sourceforge.net/screenshots/subplot_demo_large.png

for example), however I have not found any sample to accomplish the

same goal when using sub-figures obtained as

ax1 = axes(...)

like http://matplotlib.sourceforge.net/screenshots/finance_work2_small.png,

for example.

With gnuplot is very easy. Is there any way to achieve the same result

with matplotlib?

John,

thanks for your reply. Unfortunately it does not work for Axes (at

least for me).

I've got 3 axes (like the finance sample) and the ylabel appears only

for the last one and only if I use ylabel(...) (yes, I'm using

ax1.set_ylabel, ax2.set_yabel and ax3.set_ylabel)

Any idea?

Michele

## ···

On 5/11/07, John Hunter <jdh2358@...287...> wrote:

On 5/11/07, Michele Mazzucco <michelemazzucco@...287...> wrote:

> Hi all,

>

> when using subplot is very easy to plot an ylabel for each subplot

> (see http://matplotlib.sourceforge.net/screenshots/subplot_demo_large.png

> for example), however I have not found any sample to accomplish the

> same goal when using sub-figures obtained as

>

> ax1 = axes(...)

> like http://matplotlib.sourceforge.net/screenshots/finance_work2_small.png,

> for example.

>

> With gnuplot is very easy. Is there any way to achieve the same result

> with matplotlib?

Not sure I understand your question, but

ax.set_ylabel('my label')

will work for Axes or Subplots (a Subplot is an Axes instance...)

JDH

I've sorted it out. Thanks John.

Michele

## ···

On 5/11/07, Michele Mazzucco <michelemazzucco@...287...> wrote:

John,

thanks for your reply. Unfortunately it does not work for Axes (at

least for me).

I've got 3 axes (like the finance sample) and the ylabel appears only

for the last one and only if I use ylabel(...) (yes, I'm using

ax1.set_ylabel, ax2.set_yabel and ax3.set_ylabel)

Any idea?

Michele

On 5/11/07, John Hunter <jdh2358@...287...> wrote:

> On 5/11/07, Michele Mazzucco <michelemazzucco@...287...> wrote:

> > Hi all,

> >

> > when using subplot is very easy to plot an ylabel for each subplot

> > (see http://matplotlib.sourceforge.net/screenshots/subplot_demo_large.png

> > for example), however I have not found any sample to accomplish the

> > same goal when using sub-figures obtained as

> >

> > ax1 = axes(...)

> > like http://matplotlib.sourceforge.net/screenshots/finance_work2_small.png,

> > for example.

> >

> > With gnuplot is very easy. Is there any way to achieve the same result

> > with matplotlib?

>

> Not sure I understand your question, but

>

> ax.set_ylabel('my label')

>

> will work for Axes or Subplots (a Subplot is an Axes instance...)

>

> JDH

>