私は、PythonとLinuxで本当に新しいだと私は助けを必要とする、私は次のように簡単なプロットを示すためmatplotlibのを使用しようとしました:プロット)(matplotlibのをplt.showを使用して表示されていない
from matplotlib import pyplot as plt
plt.plot([5,6,7,8], [7,3,8,3])
plt.show()
白いキャンバスなし
/usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3agg.py:18: UserWarning: The Gtk3Agg backend is known to not work on Python 3.x with pycairo. Try installing cairocffi.
"The Gtk3Agg backend is known to not work on Python 3.x with pycairo. "
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3agg.py", line 69, in on_draw_event
buf, cairo.FORMAT_ARGB32, width, height)
NotImplementedError: Surface.create_for_data: Not Implemented yet.
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3agg.py", line 69, in on_draw_event
buf, cairo.FORMAT_ARGB32, width, height)
NotImplementedError: Surface.create_for_data: Not Implemented yet.
/usr/local/lib/python3.4/dist-packages/matplotlib/backends/backend_gtk3.py:215: Warning: Source ID 7 was not found when attempting to remove it
GLib.source_remove(self._idle_event_id)
と空のフィギュア::私はpython3 test.py
実行したときしかし、私は次の出力を得る
どうしたのですか?どうすれば修正できますか?
が問題でなければならない依存関係が満たされた場合には、同じくらい簡単ですLinux上のグラフィックスモジュールを使用しています。再インストールする必要があります。 –