Put as many subplots as possible on an A4 paper

Hello,
  I want to print around 100 histograms using A4 paper. Since I do not
know how to print on multiple pages, I simply print 6 or 9 subplots on
call to savefig(), followed by a call to clf(), then repeat the
process.
  The problem is, when I put more than 9 subplots into a ps file, I
found the figures were placed near to each other in the center area,
although there is plenty of free space to do a 4x3 placement without
overlap.
  When I try to put 4x3=12 subplots on a figure, I find each
sub-figure is very small, and there xlabel/ylabel overlap. It seems
subplot uses a fixed size canvas for plotting.

  Is there a way to control the vspace and hspace between figures in a
subplot so that in my case all 12 subplots be placed evenly on an A4
paper?

Many thanks,
Zhang Le

Hi,

Since Matplotlib version 0.82, you can adjust subplot vspace, hspace and
margins.

Either use subplots_adjust
    http://matplotlib.sourceforge.net/matplotlib.pylab.html#-subplots_adjust
or from the figure window, use the new toolbar button (on the left of "save")
to adapt it conveniently.

You can also specify the standard behaviour for the session in the rc params :
      rc('figure.subplot', wspace=0.3)

Regards

Nicolas

Le Vendredi 16 Septembre 2005 11:29, Zhang Le a écrit :

···

Hello,
  I want to print around 100 histograms using A4 paper. Since I do not
know how to print on multiple pages, I simply print 6 or 9 subplots on
call to savefig(), followed by a call to clf(), then repeat the
process.
  The problem is, when I put more than 9 subplots into a ps file, I
found the figures were placed near to each other in the center area,
although there is plenty of free space to do a 4x3 placement without
overlap.
  When I try to put 4x3=12 subplots on a figure, I find each
sub-figure is very small, and there xlabel/ylabel overlap. It seems
subplot uses a fixed size canvas for plotting.

  Is there a way to control the vspace and hspace between figures in a
subplot so that in my case all 12 subplots be placed evenly on an A4
paper?

Many thanks,
Zhang Le

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Many thanks, that's extract what I want

···

On 9/16/05, Nicolas Dubuit <dubuit@...792...> wrote:

Hi,

Since Matplotlib version 0.82, you can adjust subplot vspace, hspace and
margins.

Either use subplots_adjust
    http://matplotlib.sourceforge.net/matplotlib.pylab.html#-subplots_adjust
or from the figure window, use the new toolbar button (on the left of "save")
to adapt it conveniently.

You can also specify the standard behaviour for the session in the rc params :
      rc('figure.subplot', wspace=0.3)

Regards

Nicolas

Le Vendredi 16 Septembre 2005 11:29, Zhang Le a écrit:
> Hello,
> I want to print around 100 histograms using A4 paper. Since I do not
> know how to print on multiple pages, I simply print 6 or 9 subplots on
> call to savefig(), followed by a call to clf(), then repeat the
> process.
> The problem is, when I put more than 9 subplots into a ps file, I
> found the figures were placed near to each other in the center area,
> although there is plenty of free space to do a 4x3 placement without
> overlap.
> When I try to put 4x3=12 subplots on a figure, I find each
> sub-figure is very small, and there xlabel/ylabel overlap. It seems
> subplot uses a fixed size canvas for plotting.
>
> Is there a way to control the vspace and hspace between figures in a
> subplot so that in my case all 12 subplots be placed evenly on an A4
> paper?
>
> Many thanks,
> Zhang Le
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> matplotlib-users List Signup and Options

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Once you get this to look nice,
please post an example.

Thank you,
Alan Isaac

···

On Fri, 16 Sep 2005, Zhang apparently wrote:

When I try to put 4x3=12 subplots on a figure, I find
each sub-figure is very small, and there xlabel/ylabel
overlap. It seems subplot uses a fixed size canvas for
plotting.