环境:ubuntu14.04, python2.7
在运行demo时报错:http://matplotlib.org/examples/text_labels_and_annotations/autowrap_demo.html
查找到原因:http://stackoverflow.com/questions/34375618/the-use-of-kwarg-wrap-for-a-pyplot-text-artist-in-matplotlib
“You are not using 1.5 if the keyword is not working”
自己查了下版本:
>>> import matplotlib
>>> matplotlib.__version__
'1.3.1'
果然版本太低
之前是用命令sudo apt-get install python-matplotlib来安装的,查了下,发现ubuntu14.04的python-matplotlib包是1.3的,要到ubuntu16.04才升级到1.5
所以,只能手动安装matplotlib
教程(未测试):http://www.cnblogs.co