how can I show some figures, but not others?

I have a script that calls several subroutines, each of which makes a
different figure. One of these routines makes lots of figures for use
in a webpage, all of which are saved as they are made. When I call
show() at the end of the script it is showing all the figures (as one
might expect), but what I really want is only some of the figures to
be brought up in the GUI. Is there a way of specifying which figures
show() shows (I can't find anything on the webpage)?

···

--
Cheers,

Nick Schurch

Data Analysis Group (The Barton Group),
School of Life Sciences,
University of Dundee,
Dow St,
Dundee,
DD1 5EH,
Scotland,
UK

Tel: +44 1382 388707
Fax: +44 1382 345 893

You can close some of the figures before calling show:

pyplot.close(fig)
or
pyplot.close(fig_number)

Kind regards,
Matthias

···

On Tuesday 16 March 2010 14:17:26 Nick Schurch wrote:

I have a script that calls several subroutines, each of which makes a
different figure. One of these routines makes lots of figures for use
in a webpage, all of which are saved as they are made. When I call
show() at the end of the script it is showing all the figures (as one
might expect), but what I really want is only some of the figures to
be brought up in the GUI. Is there a way of specifying which figures
show() shows (I can't find anything on the webpage)?