编辑曲线和轴参数选项未在 matplotlib 中显示

Edit curves lines and axes parameter option not showing in matplotlib

我正在使用 Python 2.6 和 PyQt4。 matplotlib 后端设置为 "Qt4Agg"。

绘图出现了,但编辑曲线参数的选项(看起来像绿色勾选框的那个)没有出现。

有什么想法吗?

编辑: 这是我没有看到的复选框:

示例代码:

import matplotlib
matplotlib.use('Qt4Agg')
import matplotlib.pyplot as plt
matplotlib.rcParams['interactive'] = True
plt.ion()
x=[1,2,3]
plt.plot(x,x)
inp = input('Press enter to exit ')

编辑 2:

我找到了线索,但我仍然不知道问题出在哪里。我尝试通过

导入 NavigationToolbar
from matplotlib.backends.backend_qt4 import NavigationToolbar2QT 

然后使用

访问文档
print(help(NavigationToolbar2QT)) 

在我使用最新版本 Pyzo 的 Windows 上,存在一个名为 "edit_parameters(self)" 的方法。当我在 Linux 机器上对 Python 2.6 执行相同操作时,该方法完全缺失。有什么问题吗?

问题被确定为旧版本的 matplotlib。