Re: [matplotlib-devel] wx-style layout engine for matplotlib: mplsizer

2006-07-31 Thread Christopher Barker
Andrew Straw wrote: > I was thinking I want an exact a replica of the wx API as possible, well, I'm a big fan of wx.Sizers, but we all know that they confuses folks. Given that grid-like layouts are likely to be the most common with MPL, maybe just make a GridBagSizer, and forget the rest? All t

Re: [matplotlib-devel] wx-style layout engine for matplotlib: mplsizer

2006-07-31 Thread Andrew Straw
Hi Ken, Thanks for your comments. Ken McIvor wrote: >1. It appears that as_sizer_element() uses the _axes_sizer_elements >dictionary to cache MplAxesSizerElement instances. Using a >WeakKeyDictionary from the "weakref" module instead of a regular >dictionary may be necessary to allow the

Re: [matplotlib-devel] wx-style layout engine for matplotlib: mplsizer

2006-07-30 Thread Ken McIvor
Andrew, This looks very cool, and I'm looking forward to playing around with it. Thanks for the hard work! Shooting from the hip, here are some initial comments. I may be able to submit patches for some of the more innocuous items later in the week. 1. It appears that as_sizer_element()

Re: [matplotlib-devel] wx-style layout engine for matplotlib: mplsizer

2006-07-30 Thread Bill Baxter
On 7/30/06, Andrew Straw <[EMAIL PROTECTED]> wrote: > The basic > idea is to create a layout engine for matplotlib. Not wanting to > (re-)invent an API, I decided simply to imitate the layout engine I knew > best, which is wxPython. Very cool!

[matplotlib-devel] wx-style layout engine for matplotlib: mplsizer

2006-07-29 Thread Andrew Straw
Due to repeated emails by Eric Firing about how something like this would be nice to have, I finally got around to packaging a little utility I wrote. I uploaded it to the MPL source repository. The basic idea is to create a layout engine for matplotlib. Not wanting to (re-)invent an API, I decided