I've recently started using sublimetext 2, however I noticed today that the plt.show()
function doesn't seem to work when run within sublimetext.
If for example I create the following script:
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.show()
Running this with IDLE generates a plot, however using sublimetext no output is generated. It just keeps 'thinking' until I end the python.exe process after which [Finished] is output.
Have I misunderstood how sublimetext is meant to be used?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…