Matplotlib plots not showing up in Mac OSX?

后端 未结 13 572
梦如初夏
梦如初夏 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 15:01

    As a temporary work around one can save the figure to a .png/.jpg/.pdf and make use of that file for the moment.

    ## assuming price is out DataFrame that contains columns that we want to plot 
    pdf_plot=price.plot().get_figure()  
    pdf_plot.savefig('Stocks.pdf')
    
    0 讨论(0)
提交回复
热议问题