How do I get interactive plots again in Spyder/IPython/matplotlib?

前端 未结 5 1900
逝去的感伤
逝去的感伤 2020-11-30 18:25

I upgraded from Python(x,y) 2.7.2.3 to 2.7.6.0 in Windows 7 (and was happy to see that I can finally type function_name? and see the docstring in the Object Ins

5条回答
  •  日久生厌
    2020-11-30 18:45

    As said in the comments, the problem lies in your script. Actually, there are 2 problems:

    • There is a matplotlib error, I guess that you're passing an argument as None somewhere. Maybe due to the defaultdict ?
    • You call show() after each subplot. show() should be called once at the end of your script. The alternative is to use interactive mode, look for ion in matplotlib's documentation.

提交回复
热议问题