Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-08 Thread Benjamin Root
On Wed, Sep 8, 2010 at 8:06 PM, Eric Firing wrote: > JJ, > > > I just wanted to raise a question of whether we let Axes3D add itself >> to its parent (although this is not a bug anymore). If you and others >> feel okay about it, then that's completely fine with me also. >> > > It sounds like a v

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-08 Thread Eric Firing
JJ, > I just wanted to raise a question of whether we let Axes3D add itself > to its parent (although this is not a bug anymore). If you and others > feel okay about it, then that's completely fine with me also. It sounds like a valid point, worth addressing, but it is one I will leave to you, B

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-08 Thread Jae-Joon Lee
On Thu, Sep 9, 2010 at 4:13 AM, Eric Firing wrote: > I don't think I understand the point you are making here--is it that the > Axes3D is a lone anomaly? > Yes. And I feel that Axes3D better not add itself to the figure during the instance initialization. Just a different view of the current bug.

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-08 Thread Jae-Joon Lee
On Thu, Sep 9, 2010 at 9:38 AM, Eric Firing wrote: > Fixed in 8693. > Thanks! -JJ -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. ht

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-08 Thread Eric Firing
On 09/07/2010 10:27 PM, Jae-Joon Lee wrote: > Eric, > > The drawing order of multiple axes in a same figure depends on the > order of "axes". And this has been the order that axes is added to the > figure (given that they have same zorder value). However, the current > implementation does not prese

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-08 Thread Eric Firing
On 09/07/2010 10:27 PM, Jae-Joon Lee wrote: > Eric, > > The drawing order of multiple axes in a same figure depends on the > order of "axes". And this has been the order that axes is added to the > figure (given that they have same zorder value). However, the current > implementation does not prese

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-08 Thread Jae-Joon Lee
Eric, The drawing order of multiple axes in a same figure depends on the order of "axes". And this has been the order that axes is added to the figure (given that they have same zorder value). However, the current implementation does not preserve this order. For example, ax1 = axes([0.1, 0.1, 0

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-05 Thread Benjamin Root
On Sun, Sep 5, 2010 at 9:16 PM, Eric Firing wrote: > On 09/05/2010 11:06 AM, Benjamin Root wrote: > >> On Sun, Sep 5, 2010 at 2:53 PM, Eric Firing > > wrote: >> >>On 09/04/2010 05:50 PM, Benjamin Root wrote: >> > On Sat, Sep 4, 2010 at 3:20 AM, Jae-Joon Lee >>

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-05 Thread Eric Firing
On 09/05/2010 11:06 AM, Benjamin Root wrote: > On Sun, Sep 5, 2010 at 2:53 PM, Eric Firing > wrote: > > On 09/04/2010 05:50 PM, Benjamin Root wrote: > > On Sat, Sep 4, 2010 at 3:20 AM, Jae-Joon Lee > mailto:lee.j.j...@gmail.com> > >

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-05 Thread Eric Firing
On 09/05/2010 11:06 AM, Benjamin Root wrote: > On Sun, Sep 5, 2010 at 2:53 PM, Eric Firing > wrote: > > On 09/04/2010 05:50 PM, Benjamin Root wrote: > > On Sat, Sep 4, 2010 at 3:20 AM, Jae-Joon Lee > mailto:lee.j.j...@gmail.com> > >

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-05 Thread Benjamin Root
On Sun, Sep 5, 2010 at 2:53 PM, Eric Firing wrote: > On 09/04/2010 05:50 PM, Benjamin Root wrote: > > On Sat, Sep 4, 2010 at 3:20 AM, Jae-Joon Lee > > wrote: > > > > On Fri, Sep 3, 2010 at 4:14 AM, Benjamin Root > > wrote: > > >

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-05 Thread Eric Firing
On 09/04/2010 05:50 PM, Benjamin Root wrote: > On Sat, Sep 4, 2010 at 3:20 AM, Jae-Joon Lee > wrote: > > On Fri, Sep 3, 2010 at 4:14 AM, Benjamin Root > wrote: > > I think there are multiple issues here. Primarially, there is >

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-04 Thread Benjamin Root
On Sat, Sep 4, 2010 at 3:20 AM, Jae-Joon Lee wrote: > On Fri, Sep 3, 2010 at 4:14 AM, Benjamin Root wrote: > > I think there are multiple issues here. Primarially, there is the issue > > that Axes3D is attaching itself to a figure. However, in the interest of > > backwards-compatibility, we ca

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-03 Thread Jae-Joon Lee
On Fri, Sep 3, 2010 at 4:14 AM, Benjamin Root wrote: > I think there are multiple issues here.  Primarially, there is the issue > that Axes3D is attaching itself to a figure.  However, in the interest of > backwards-compatibility, we can't just fix this outright.  There is also the > issue that th

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-02 Thread Eric Firing
On 09/02/2010 04:12 PM, Ryan May wrote: > On Thu, Sep 2, 2010 at 8:33 PM, Benjamin Root wrote: >> On Thu, Sep 2, 2010 at 7:57 PM, Eric Firing wrote: >>> On 09/02/2010 01:21 PM, Benjamin Root wrote: I think I understand the purpose for each container by itself, but not for having all thr

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-02 Thread Ryan May
On Thu, Sep 2, 2010 at 8:33 PM, Benjamin Root wrote: > On Thu, Sep 2, 2010 at 7:57 PM, Eric Firing wrote: >> On 09/02/2010 01:21 PM, Benjamin Root wrote: >> > I think I understand the purpose for each container by itself, but not >> > for having all three together at the same time.  At the very l

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-02 Thread Benjamin Root
On Thu, Sep 2, 2010 at 7:57 PM, Eric Firing wrote: > On 09/02/2010 01:21 PM, Benjamin Root wrote: > > On Thu, Sep 2, 2010 at 3:51 PM, Ryan May > > wrote: > > > > On Sep 2, 2010, at 14:14, Benjamin Root > > wrote: > > > > > There was

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-02 Thread Eric Firing
On 09/02/2010 01:21 PM, Benjamin Root wrote: > On Thu, Sep 2, 2010 at 3:51 PM, Ryan May > wrote: > > On Sep 2, 2010, at 14:14, Benjamin Root > wrote: > > > There was a bug report recently (not to the mailing list) where > the repor

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-02 Thread Benjamin Root
On Thu, Sep 2, 2010 at 3:51 PM, Ryan May wrote: > On Sep 2, 2010, at 14:14, Benjamin Root wrote: > > > There was a bug report recently (not to the mailing list) where the > reporter noted that if an Axes3D was created using the fig.add_subplot(111, > projection='3d') or fig.gca(projection='3d'),

Re: [matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-02 Thread Ryan May
On Sep 2, 2010, at 14:14, Benjamin Root wrote: > There was a bug report recently (not to the mailing list) where the reporter > noted that if an Axes3D was created using the fig.add_subplot(111, > projection='3d') or fig.gca(projection='3d'), then you can not clear the > figure using fig.clf()

[matplotlib-devel] clf(), Axes3D and add_subplot

2010-09-02 Thread Benjamin Root
There was a bug report recently (not to the mailing list) where the reporter noted that if an Axes3D was created using the fig.add_subplot(111, projection='3d') or fig.gca(projection='3d'), then you can not clear the figure using fig.clf(). Doing so causes an exception to be thrown. Tracing down