Plot with scipy

bernhard.voigt at gmail.com bernhard.voigt at gmail.com
Mon May 7 08:50:50 EDT 2007


On 4 Mai, 15:57, redcic <cedric.lou... at gmail.com> wrote:
> I've already got this package. I just wanted to try something new.
>
> However, since you talk about it, I've got a question regarding this
> package. The execution of the code stops after the line:
> pylab.show()
> which is off course the last line of my code. My problem is that I
> have to close the figure window in order to launch my program another
> time. I'd like to be able to launch my program many times with
> different parameters without having to close the figure windows before
> each launch.
> Just so you know, I'm using TkAgg backend.
>
> Any hint ?

There's an option in your matplotlibrc file (personal lives in
$HOME/.matplotlib, default in $PYTHONPATH/matplotlib/mpl-data):

#### CONFIGURATION BEGINS HERE
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
#     Agg Cairo GD GDK Paint PS PDF SVG Template
backend      : TkAgg
numerix      : numpy  # numpy, Numeric or numarray
interactive  : True      # see http://matplotlib.sourceforge.net/interactive.html
.....

Take a look at the quoted webpage for details and troubleshooting.

Bernhard




More information about the Python-list mailing list