Matplotlib plots not showing up in Mac OSX?

后端 未结 13 589
梦如初夏
梦如初夏 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:41

    I wanna share this workable solution for me,

    import matplotlib
    import platform
    if platform.system() == 'Darwin':
        matplotlib.use('MacOSX')
    

提交回复
热议问题