pylab.close() gtk error


If I run the following script on my system (SuSE 10.0, matplotlib-0.87 but
same behaviour with 0.86):


import matplotlib
import pylab


It crashes with the following error message:

Traceback (most recent call last):
  File "./", line 8, in ?
  File "/usr/lib/python2.4/site-packages/matplotlib/", line 768, in
    else: _pylab_helpers.Gcf.destroy(figManager.num)
  File "/usr/lib/python2.4/site-packages/matplotlib/", line
28, in destroy
  File "/usr/lib/python2.4/site-packages/matplotlib/backends/",
line 456, in destroy
RuntimeError: called outside of a mainloop

Does someone has an idea of the problem?
I didn't have this kind of problem with my SuSE 9.3 and matplotlib-0.85


Emmanuel Pécontal

CRAL - Observatoire de Lyon
9, Av. Charles Andre
F-69561 Saint Genis Laval Cedex

tel (33) (0) - fax (33) (0)

email : pecontal@...419...