matplotlib interactive windows hang

I am testing matplotlib for the first time, but it continuously hang after a
really short time.

I read all the troubles about running it from an ide, so i'm using plain

Microsoft Windows 2000 [Versione 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\daniele>python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
Type "help", "copyright", "credits" or "license" for more information.

from matplotlib.matlab import *
t = arange(0.0, 5.2, 0.2)
plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^')

[<matplotlib.lines.Line2D instance at 0x0100F6E8>, <matplotlib.lines.Line2D
ance at 0x0100F788>, <matplotlib.lines.Line2D instance at 0x0100F7B0>]

The window pops up as expected. Now i switch to an ie window to watch online
docs looking for axis command syntax...
When i'm back to the prompt, the plot window is frozen. If visualized it
doesn't redraw itself and clicking on the close button in the menu bar pops
it up the not-responding-app dialog.

The Python prompt is still functional. When i try to exit i get (WXAgg


Fatal Python error: PyEval_RestoreThread: NULL tstate

abnormal program termination

C:\Documents and Settings\daniele>

The problem doesn't depend from the backend used: i tried, TkAgg, WX, WXAgg.
Sontimes i can add a title to a graph but it will always hang within a

I have a pretty fresh installation of Python 2.3.4 with numpy 0.9. I used
matplotlib-0.54.2-numarray0.9.win32-py2.3.exe. I also tried to use
matplotlib 0.54.1 but it looks like it need numpy to work (i think it's
wrong, i installed the numarray version) and i don't want to install it. No
tries with other releases. I currently don't have any problem in running
neither wxwindows nor tk apps.

Does anybody experienced the same problem?



Daniele Varrazzo
Dipartimento di Biologia Molecolare
Universita' di Siena
Via Fiorentina, 1 53100 SIENA (Italy)