我试图在python2.7.10中使用matplotlib运行一个简单的代码来绘制我的数据:
import matplotlib.pyplot as plt
y=[23,35,43,54,76]
x=[2,4,5,6,7]
plt.plot(y,x)
Run Code Online (Sandbox Code Playgroud)
我收到错误:
super(FigureCanvasQTAggBase, self).__init__(figure=figure)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line 239, in __init__
super(FigureCanvasQT, self).__init__(figure=figure)
TypeError: 'figure' is an unknown keyword argument
Run Code Online (Sandbox Code Playgroud)
我该如何解决?