python - Trouble getting matplotlib to produce plots -


i can matplotlib work in pylab (ipython --pylab), when execute same command in python script plot not appear. workspace focus changes fullscreened terminal desktop when run script, suggests trying plot failing.

the following code works in ipython --pylab not in script.

import matplotlib.pyplot plt plt.plot(arange(10)) 

i on mac os x mountain lion. what causing fail when run script not in interactive prompt?

i believe need plt.show() .


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -