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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -