|
From: Benjamin R. <ben...@ou...> - 2013-01-24 15:37:06
|
On Thu, Jan 24, 2013 at 10:13 AM, Chao YUE <cha...@gm...> wrote: > Dear all, > > I upgrade my matplotlib from 1.1.1 to 1.2.0 using the command: > > sudo pip-python install --upgrade matplotlib > > it completes successfully. However I tried to > > import matplotlib.pyplot as plt, I get the error: > > /usr/lib64/python2.7/site-packages/matplotlib/backends/backend_gdk.py in > <module>() > 27 from matplotlib.mathtext import MathTextParser > 28 from matplotlib.transforms import Affine2D > ---> 29 from matplotlib.backends._backend_gdk import > pixbuf_get_pixels_array > 30 > 31 backend_version = "%d.%d.%d" % gtk.pygtk_version > > > in my ~/.matplotlib/matplotlibrc, I am using: > backend : GTKAgg > > So what backend should I choose? thanks for any help, > > Chao > > Did you have all of the gtk/gdk development packages installed? If the installer can't find them to compile _backend_gdk.so, then it wouldn't be made available in the install. As a work-around, you could always use TkAgg, as that is a pure-python backend. I hope that helps! Ben Root |