[Matplotlib-users] how can I show some figures, but not others?

2010-03-16 Thread Nick Schurch
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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how can I show some figures, but not others?

2010-03-16 Thread Matthias Michler
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)?

You can close some of the figures before calling show:

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

Kind regards,
Matthias

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users