Hello Paul Anton,

On Tuesday 24 February 2009 09:44:38 Paul Anton Letnes wrote:
> Is it possible to completely eliminate the  
> windows popping up? Though not very important, it is still annoying  

You may want to choose another backend. That is e.g. "agg" backend, that 
doesn't use a X-window. Something like the following should give what you 
need:
>----------------------------------
import matplotlib
matplotlib.use("Agg") 
# Please notice: Backend must be chosen before importing pylab 
import pylab

pylab.plot( ... )
>-----------------------------------

regards Matthias

PS: some more information copied from the online docu: 

http://matplotlib.sourceforge.net/api/matplotlib_configuration_api.html?highlight=use#matplotlib.use

matplotlib.use(arg, warn=True)

    Set the matplotlib backend to one of the known backends.

    The argument is case-insensitive. For the Cairo backend, the argument can 
have an extension to indicate the type of output. Example:

        use(‘cairo.pdf’)

    will specify a default of pdf output generated by Cairo.

    Note: this function must be called before importing pylab for the first 
time; or, if you are not using pylab, it must be called before importing 
matplotlib.backends. If warn is True, a warning is issued if you try and 
callthis after pylab or pyplot have been loaded. In certain black magic use 
cases, eg pyplot.switch_backends, we are doing the reloading necessary to 
make the backend switch work (in some cases, eg pure image backends) so one 
can set warn=False to supporess the warnings

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to