-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
I am using matplotlib 2.0.0. I want to render to a GTK UI window. But I am geeting this error.
Bug report
from matplotlib.backends.backend_gtkagg
... import FigureCanvasGTKAgg as FigureCanvas
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtkagg.py", line 14, in
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk.py", line 36, in
from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gdk.py", line 33, in
from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
ImportError: No module named _backend_gdk
Code for reproduction
This is the code which I am trying to execute so as to reproduce this issue
import matplotlib
matplotlib.use('GTKAgg')
import gtk
from matplotlib.figure import Figure
import numpy as np
from matplotlib.backends.backend_gtkagg \
import FigureCanvasGTKAgg as FigureCanvas
gtk.pygtk_version: 2.24.0, I am testing on linux 16.04 machine