我刚刚在运行 ubuntu 10.04 LTS 的服务器上将 matplotlib 更新为 1.1.0,以便更好地使用 pandas。Pandas 正在根据不同版本的 matplotlib 的功能转换我的索引。我在另一台服务器上使用“easyinstall -U matplotlib”和“pip install -U matplotlib”安装。
我无法在我以前的任何工作脚本或 ipython 中绘图。show() 已停止在 pylab 中工作。有人可以指出我可能会被破坏的方向吗?
我从 matplotlib 的站点获取了以下测试脚本“simple_plot.py”,并在第一次删除我的配置目录后在各种服务器上对其进行了测试。
from pylab import *
plot([1,2,3])
show()
simple_plot 在版本 <= 0.99 上运行但在版本 1.1 上没有输出的所有服务器上生成图。
这是一台不起作用的服务器上的调试输出:
$HOME=/home/michael
CONFIGDIR=/home/michael/.matplotlib
matplotlib data path /usr/local/lib/python2.6/dist-packages/matplotlib-1.1.0-py2.6-linux-x86_64.egg/matplotlib/mpl-data
loaded rc file /usr/local/lib/python2.6/dist-packages/matplotlib-1.1.0-py2.6-linux-x86_64.egg/matplotlib/mpl-data/matplotlibrc
matplotlib version 1.1.0
verbose.level debug
interactive is False
platform is linux2
Using fontManager instance from /home/michael/.matplotlib/fontList.cache
backend agg version v2.2
python version:2.6.5
findfont: Matching :family=sans-serif:style=normal:variant=normal:weight=normal:stretch=normal:size=medium to Bitstream Vera Sans (/usr/local/lib/python2.6/dist-packages/matplotlib-1.1.0-py2.6-linux- x86_64.egg/matplotlib/mpl-data/fonts/ttf/Vera.ttf) with score of 0.000000