~(mypython): vi ~/.matplotlib/matplotlibrc
添加如下内容
------------------------------
backend: TkAgg
------------------------------
4. 总结
没有第2和第3步骤,将报如下错误
--------------------------------------
**RuntimeError**: Python isnot installed as a
framework. The Mac OS X backend will not be able to
function correctly if Python isnot installed as a
framework. See the Python documentation for more
information on installing Python as a framework on Mac
OS X. Please either reinstall Python as a framework,
ortry one ofthe other backends.
----------------------------------