Re: [matplotlib-devel] Interactive wx/pylab with no threads (PyOS_InputHook)

2009-02-08 Thread Gael Varoquaux
On Sun, Feb 08, 2009 at 04:08:31PM -0800, Brian Granger wrote: > * In the current matplotlib backend wx.Yield() is called in a way that > is not safe as far as protecting against recursive calls to Yield. I > think it should be called in this way: > app = wx.GetApp() > if app is not None: > app

[matplotlib-devel] Interactive wx/pylab with no threads (PyOS_InputHook)

2009-02-08 Thread Brian Granger
IPython and matplotlib devs, Over the weekend I have been playing around to see if it is possible to do interactive GUI work with wx from IPython *without using threads*. The idea here is to use PyOS_InputHook. Currently, recent versions of PyQt4 and PyGTK do this and if we can get wx working, w

[matplotlib-devel] Fwd: [sage-devel] Re: Massively collaborative mathematics + Sage-ready blogs and forums

2009-02-08 Thread Fernando Perez
Interesting: gnuplot rendered in HTML5. It would be interesting to see this in mpl... -- Forwarded message -- From: Pat LeSmithe Date: Sun, Feb 8, 2009 at 3:44 AM Subject: [sage-devel] Re: Massively collaborative mathematics + Sage-ready blogs and forums To: sage-de...@googlegro

[matplotlib-devel] plot directive in reST tutorials

2009-02-08 Thread Fernando Perez
Howdy, recently, Matthew Brett pointed out that reST supports a mode that's very handy for writing tutorial-like documents that contain code blocks including their output, and they can even be run as tests. Here's a simple example with its corresponding source: http://neuroimaging.scipy.org/site/

Re: [matplotlib-devel] imsave function

2009-02-08 Thread Gary Ruben
Thanks for the quick test and comments Andrew. I've made your suggested changes and attached a new patch. Gary Andrew Straw wrote: Hi Gary, I have a couple comments: 1) No need for: +ax = fig.add_subplot(111) +ax.set_axis_off() 2) It's probably best to have maximum compatibility wit