Problem with multiple plots

When I run the script below, the first plot window prints fine, but the
second plot causes the script to crash and prints this error message:
<<
Fatal Python error: PyEval_RestoreThread: NULL tstate
This application has requested the Runtime to terminate in an unusual way.
Please contact the applications support team for more information.

Anybody know what I'm doing wrong? (WinXP, Matplotlib 0.99.1, Python v2.5)

import matplotlib.pyplot as plt

y=[1,2,3,2,1]
plt.plot(y)
plt.show()

raw_input("hit [enter] to show the next plot: ")

z=[4,5,4,5,4]
plt.plot(z)
plt.show()

···

--
View this message in context: http://old.nabble.com/Problem-with-multiple-plots-tp26976541p26976541.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show

AlanIsaac wrote:

http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show

Thanks. Obviously, I did not do a good enough job reading the faq...

···

--
View this message in context: http://old.nabble.com/Problem-with-multiple-plots-tp26976541p26998858.html
Sent from the matplotlib - users mailing list archive at Nabble.com.