Installation Issue with matplotlib Python

This question already has an answer here:

  • python matplotlib framework under macosx? 8 answers

  • Problem Cause In mac os image rendering back end of matplotlib (what-is-a-backend to render using the API of Cocoa by default). There is Qt4Agg and GTKAgg and as a back-end is not the default. Set the back end of macosx that is differ compare with other windows or linux os.

    I resolve this issue following ways:

  • I assume you have installed the pip matplotlib, there is a directory in you root called ~/.matplotlib .
  • Create a file ~/.matplotlib/matplotlibrc there and add the following code: backend: TkAgg
  • From this link you can try different diagram.

    链接地址: http://www.djcxy.com/p/46718.html

    上一篇: 以下载python的形式提供stringIO(pdf)

    下一篇: matplotlib Python的安装问题