can't find pygtk

I am using matplotlib 1.1.0 that came with the current EPD, which in turn comes without pygtk.

However, the linux system I am using this on (CentOS6) has pygtk installed:

/usr/lib64/pygtk/2.0

Is there any change I can marry those two? Currently, when I try to
matplotlib.use('gtk')
I get an error
ImportError("Gtk* backend requires pygtk to be installed.")

Or do I need to recompile it into this matplotlib?

Thanks for your help!

Michael

PS.: The reason why I want to try GTK is actually that there are reports of it being able to cope with 1 million data points, something all other Agg-related backends can not do, apparently. (My linux is server is definitely not the limit :wink:

I am using matplotlib 1.1.0 that came with the current EPD, which in
turn comes without pygtk.

However, the linux system I am using this on (CentOS6) has pygtk installed:

/usr/lib64/pygtk/2.0

Is there any change I can marry those two? Currently, when I try to
matplotlib.use('gtk')
I get an error
ImportError("Gtk* backend requires pygtk to be installed.")

Or do I need to recompile it into this matplotlib?

Yes, you need to recompile. It will need to compile _backend_gdk.c, which needs to be able to find pygtk.h.

The plain (non-agg) gtk backend is basically unmaintained and its use is discouraged. Are you sure there isn't a reasonably easy way to do what you need with qt4agg, for example? How do you want to visualize your million points?

Eric

ยทยทยท

On 2012/10/17 6:13 PM, Michael Aye wrote:

Thanks for your help!

Michael

PS.: The reason why I want to try GTK is actually that there are
reports of it being able to cope with 1 million data points, something
all other Agg-related backends can not do, apparently. (My linux is
server is definitely not the limit :wink:

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options