On 2013/01/24 5:36 AM, Benjamin Root wrote:
>
>
> On Thu, Jan 24, 2013 at 10:13 AM, Chao YUE <[email protected]
> <mailto:[email protected]>> 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.

No, we have a _tkagg.cpp.

qt4agg and wxagg use no extension code beyond that for agg itself.

Eric

>
> I hope that helps!
> Ben Root


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to