On 10/05/2012 09:57 AM, Michael Droettboom wrote:
On 10/05/2012 06:38 AM, todd rme wrote:
I am trying to do some experimental packages with python 3 and the
latest RC, and I am trying to figure out the situation with some of
the backends. Some are obvious, like wxwidgets and PyQt (Qt3
version).
The issue I am running into is with the gtk backend PyGTK is
deprecated. According to the website, all development halted a year
and a half ago and they say to use PyGObject instead. PyGTK, as far
as I can tell, does not support Python 3 or GTK 3. PyGObject,
however, supports both. So I was wondering what I should be doing
with this backend. Does matplotlib support PyGObject, or should the
GTK backends just be disabled on Python 3 builds?
The new Gtk3Cairo backend uses PyGObject and works under Python 3.
(This refers to Gtk version 3, which is also only supported by
PyGObject -- the backend could perhaps have been called PyGObject, but
in fact the toolkit used is still Gtk, so the naming is perhaps a bit
confusing). The older pygtk backend still ships with Python 3, but a
warning is displayed when the user attempts to use it.
Once PyGObject/PyCairo addresses a shortcoming [1] that prevents a
bitmap buffer from being transferred to an on screen window, the
Gtk3Agg backend will also work.
http://lists.cairographics.org/archives/cairo/2011-November/022519.html
It turns out that this was addressed in git last May and it does in fact
work with matplotlib. Once a new pycairo release is out and makes it
into the package managers, the Gtk3Agg backend should work on Python 3.
Mike
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel