This looks nice Andrew, I haven't tried it, but I wonder whether it's possible to add a keyword arg to suppress the 0's at the origin which are cut through by the axes in the zeroed case (and/or possibly shift the 0 on the horizontal axis left). The same thing is happening in the (1,2) case on the vertical axis.
Gary Andrew Straw wrote: > I have implemented something I'm calling "smart bounds" for the axis > spines, and have just committed it to svn r8048. I modified > examples/pylab_examples/spine_placement_demo.py to illustrate the basic > idea -- the spines and ticks should be able to automatically limit > themselves to the data range. There are some subtleties beyond that in > terms of the algorithmic details, but I think if you update from svn and > play around with the demo, especially by panning and zooming in the > figures, you'll get an idea of what I've done. I've attached two images > from such a session. > > The key API addition is this: > > spine.set_smart_bounds(True) > > Doing so turns on the smart bounds mode in the spine and the axis. > > Anyhow, I'd be happy to receive any feedback on this new feature. > > -Andrew ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel