python_dataVisualization

matplotlib

install

# python 3+ 请复制以下在 terminal 中执行
$ pip3 install matplotlib

# python 2+ 请复制以下在 terminal 中执行
$ pip install matplotlib

使用问题:
Python is not installed as a framework…
解决方法:
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.

安装后有个目录 ~/.matplotlib.
在目录下新建文件 ~/.matplotlib/matplotlibrc 内容为: ”backend: TkAgg“