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 ()
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
···
–
Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
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
···
On Thu, Jan 24, 2013 at 10:13 AM, Chao YUE <chaoyuejoy@…287…> 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 ()
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
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.
No, we have a _tkagg.cpp.
qt4agg and wxagg use no extension code beyond that for agg itself.
Eric
···
On 2013/01/24 5:36 AM, Benjamin Root wrote:
On Thu, Jan 24, 2013 at 10:13 AM, Chao YUE <chaoyuejoy@...287... > <mailto:chaoyuejoy@…287…>> wrote:
I hope that helps!
Ben Root