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
Post a Comment