Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This will not solve the problem, but just as a side remark here: It would be recommended not to use pylab at all. From the usage guide: "pylab is a convenience module that bulk imports matplotlib.pyplot (for plotting) and numpy (for mathematics and working with arrays) in a single name space. Although many examples use pylab, it is no longer recommended." Simply use import matplotlib.pyplot as plt and call plt.show() at the end. Commented Aug 19, 2017 at 18:41
  • Possible duplicate of How do I get interactive plots again in Spyder/IPython/matplotlib? Commented Aug 19, 2017 at 18:47
  • I'm not sure if this is a duplicate, since the other question specifically asks for the IPython backend, while here a behaviour similar to terminal is mentionned in the question. At least I provided an answer mentionning both options. Commented Aug 19, 2017 at 19:11