Matplotlib animation not working in IPython Notebook (blank plot)

前端 未结 5 1409
悲&欢浪女
悲&欢浪女 2021-02-01 20:36

I\'ve tried multiple animation sample codes and cannot get any of them working. Here\'s a basic one I\'ve tried from the Matplotlib documentation:

\"\"\"
A simp         


        
5条回答
  •  天涯浪人
    2021-02-01 21:02

    I was having the exact same problem as you until a moment ago. I am a complete novice, so tcaswell's answer was a bit cryptic to me. Perhaps you figured out what he meant or found your own solution. In case you have not, I will put this here.

    I googled "matplotlib inline figures" and found this site, which mentions that you have to enable matplotlib mode. Unfortunately, just using %maplotlib didn't help at all.

    Then I typed %matplotlib qt into the IPython console on a lark and it works just fine now, although the plot appears in a separate window.

提交回复
热议问题