[matplotlib-devel] Using a dict for the CallbackRegistry

2011-11-15 Thread Benjamin Root
A question that was raised while diagnosing an issue with mpl_connect().  A
user wants to attach a function to multiple events.  Apparently, this was
possible in previous versions, but the current version disallows that
through its use of the dictionary that is key'ed by the callback
functions.  Do we want to explicitly disallow this, or should we be keying
the dictionary with (action, callback) tuples?

Ben Root
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] GTK3 backend for matplotlib?

2011-11-15 Thread [email protected]
Hi

Is anyone working on a Gtk3 backend for matplotlib that use the pygobject API?

I could not find any information about how to use the matplotlib with
Gtk3, so I started to port the Gtk2 backend to the pygobject API, and
using the cairo backend for renderering.

I'm attaching a tarboll that contains the backend_gtk3.py file and
some test scripts for embedding a matplotlib figure in Gtk3
applications using that backend. I think it works alright for the use
cases that I've been able to test, so it might be a good starting
point for a Gtk3 backend if there are no other attempts to create such
a backend already.

Best regards
Robert


backend-gtk3.tar.gz
Description: GNU Zip compressed data
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] GTK3 backend for matplotlib?

2011-11-15 Thread Michael Droettboom
Thanks.  I spent about a day last week working on this as well -- I have 
a local branch for it.  When I get the chance, I'll have a look at this 
and compare notes.  Submitting a github pull request would be great if 
you're able.


Mike

On 11/15/2011 11:04 AM, [email protected] wrote:

Hi

Is anyone working on a Gtk3 backend for matplotlib that use the pygobject API?

I could not find any information about how to use the matplotlib with
Gtk3, so I started to port the Gtk2 backend to the pygobject API, and
using the cairo backend for renderering.

I'm attaching a tarboll that contains the backend_gtk3.py file and
some test scripts for embedding a matplotlib figure in Gtk3
applications using that backend. I think it works alright for the use
cases that I've been able to test, so it might be a good starting
point for a Gtk3 backend if there are no other attempts to create such
a backend already.

Best regards
Robert


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1


___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel



--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel