Matplotlib plots not showing up in Mac OSX?

后端 未结 13 575
梦如初夏
梦如初夏 2020-12-12 14:16

I am running Mac OSX 10.5.8. I installed matplotlib using macports. I get some examples from the matplotlib gallery like this one, without modification:

http://matpl

13条回答
  •  隐瞒了意图╮
    2020-12-12 14:54

    This is what worked for me. I just changed the import of Matplotlib

    import matplotlib
    matplotlib.use('TkAgg')
    import matplotlib.pyplot as plt
    

提交回复
热议问题