Hello, I'm thinking about slightly modifying the draw() method of the Axes class, so that user can optionally calculate the position of the axes at drawing time. It may be considered as a general version of the apply_aspect() method.
For example, instead of "self.apply_aspect()" call in the draw function, we may put something like below. if self._axes_locator: self._axes_locator(self, renderer) else: self.apply_aspect() where self._axes_locator is a (user-supplied) callable object which takes the axes itself and the renderer as arguments. I have been running a similar version of this, and I found it quite helpful especially when drawing images. Here are a few of my use cases. * colorbar (or any kind of axes) whose location is adjusted to match the image location (which is calculated on the fly with apply_aspect). * grid of images (of same size) with fixed space between them. I guess the needed change is not significant and I don't think it will interfere with other things of Axes class. So, how do others think? Regards, -JJ ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel