[matplotlib-devel] two problems with zorder

2010-03-21 Thread Phillip M. Feldman
I have two zorder-related complaints: (1) The default zorder is not reasonable. If I plot a bar chart and then overlay a scatter diagram, the scatter diagram symbols are behind the bars. If I reverse the order, i.e., I generate the scatter diagram first, the scatter diagram symbols are still be

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Fernando Perez
On Sat, Mar 20, 2010 at 4:00 PM, Jae-Joon Lee wrote: > On Sat, Mar 20, 2010 at 5:05 AM, Fernando Perez wrote: >> I wonder if it's possible to put things like a draw_if_interactive() >> call at the end of the OO methods... I realize that pyplot was the >> only one meant to do that, but if we are t

Re: [matplotlib-devel] Selecting all the way to the edge of a plot

2010-03-21 Thread Anne Archibald
On 21 March 2010 18:10, Jae-Joon Lee wrote: > > > On Sun, Mar 14, 2010 at 3:43 PM, Anne Archibald > wrote: >> >> Often when I want to >> zoom in, I want to change only (say) the upper x and y limits. > > I pushed a change into the svn that enables this, but in a different way > than you suggested

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Jae-Joon Lee
On Sun, Mar 21, 2010 at 6:07 PM, Eric Firing wrote: > I think your version would need an additional try/except or conditional, > because a Figure doesn't necessarily have a canvas assigned to it, and a > canvas doesn't necessarily have a manager. Granted, the problem would arise > only under odd

Re: [matplotlib-devel] Selecting all the way to the edge of a plot

2010-03-21 Thread Jae-Joon Lee
On Sun, Mar 14, 2010 at 3:43 PM, Anne Archibald wrote: > Often when I want to > zoom in, I want to change only (say) the upper x and y limits. > I pushed a change into the svn that enables this, but in a different way than you suggested. The behavior I implemented is similar to the current behavi

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Eric Firing
Jae-Joon Lee wrote: > > > On Sat, Mar 20, 2010 at 8:40 PM, Eric Firing > wrote: > > By the way, given that we now have "suplots" in the pyplot > namespace, > can we have sca also? > > > Done in svn 8205. > > > > Eric, > > A minor ques

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Jae-Joon Lee
On Sat, Mar 20, 2010 at 8:40 PM, Eric Firing wrote: > By the way, given that we now have "suplots" in the pyplot namespace, >> can we have sca also? >> > > Done in svn 8205. > Eric, A minor question. I wonder whether an explicit for-loop inside pyplot.sca is necessary? Here is a slight variati

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Jae-Joon Lee
On Sun, Mar 21, 2010 at 2:30 PM, Eric Firing wrote: > Is the added complexity, scrambling pylab into the OO layer, and need for > explanation, really worth the gain? As far as I can see, it merely adds one > more way to do something--and not a particularly recommended way. It is no > more concis

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Eric Firing
Ryan May wrote: > On Sun, Mar 21, 2010 at 12:35 PM, Jae-Joon Lee wrote: >> On Sat, Mar 20, 2010 at 8:40 PM, Eric Firing wrote: Or, how about we make axes an context manager. >>> This would require dropping support for Python 2.4. >> I don't think making the Axes a context manager means dropp

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Ryan May
On Sun, Mar 21, 2010 at 12:35 PM, Jae-Joon Lee wrote: > On Sat, Mar 20, 2010 at 8:40 PM, Eric Firing wrote: >>> Or, how about we make axes an context manager. >> >> This would require dropping support for Python 2.4. > > I don't think making the Axes a context manager means dropping python > 2.4

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-21 Thread Jae-Joon Lee
On Sat, Mar 20, 2010 at 8:40 PM, Eric Firing wrote: > > Done in svn 8205. > Thanks! >> >> Or, how about we make axes an context manager. > > This would require dropping support for Python 2.4. I don't think making the Axes a context manager means dropping python 2.4 support (note that I'm not s