Hi,

This simple script will animate correctly on Linux, but will not work on Windows (mpl 0.99.3) and at the end will crash with a message box (unknown software exception (0x40000015) at the location 0x1e05b62a) and prints to the console:

Fatal Python error: PyEval_RestoreThread: NULL tstate

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Please check this. Thank you,
João Luís Silva

(script inline and attached)

#-----------------------------------------------------------------------
import matplotlib.pyplot as plt
import numpy as np
plt.ion()

x = np.arange(0,2*np.pi,0.01)            # x-array
data = np.array(np.sin(x))
line, = plt.plot(x,data)

for i in range(1,50):
    data[:] = np.sin(x+i/10.0)
    line.set_ydata(data)
    plt.draw()                        # redraw the canvas
#-----------------------------------------------------------------------
import matplotlib.pyplot as plt
import numpy as np
plt.ion()

x = np.arange(0,2*np.pi,0.01)            # x-array
data = np.array(np.sin(x))
line, = plt.plot(x,data)

for i in range(1,50):
    data[:] = np.sin(x+i/10.0)
    line.set_ydata(data)
    plt.draw()                        # redraw the canvas

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to