first run works fine but on the second not

I have the following in my PyScripter:

import matplotlib
matplotlib.interactive(True)
from matplotlib.pylab import *
import pylab

if __name__ == '__main__':
   plot([1,2,3])
   pylab.show()
#__main__

For the first run it works just fine and plots what expected. However, on
the second run it just gives gray window without plot...Any suggestions?
Thanks

···

--
View this message in context: http://old.nabble.com/first-run-works-fine-but-on-the-second-not-tp26779948p26779948.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Have you seen this:

GitHub - pyscripter/pyscripter: Pyscripter is a feature-rich but lightweight Python IDE?

JDH

···

On Mon, Dec 14, 2009 at 12:38 PM, jenya56 <jenya56@...9...> wrote:

I have the following in my PyScripter:

import matplotlib
matplotlib.interactive(True)
from matplotlib.pylab import *
import pylab

if __name__ == '__main__':
plot([1,2,3])
pylab.show()
#__main__

For the first run it works just fine and plots what expected. However, on
the second run it just gives gray window without plot...Any suggestions?
Thanks