On Wed, Jun 9, 2010 at 4:18 PM, Eric Firing <efir...@hawaii.edu> wrote: > My sense is that box-forced lets you shoot yourself in the foot with > shared axes, box doesn't. The reason I prohibited sharing x and y axes > with adjustable as box is that it is not clear what should happen, or > will happen--fundamental inconsistencies can arise. Suppose you have > two axes sharing x and y. You set aspect to 1 for the first and 2 for > the second. The first axes is drawn, executing apply_aspect and setting > the box dimensions accordingly. Then the second is drawn, also > executing apply_aspect. It is inconsistent with the first. There is no > solution that satisfies all constraints. The basic point is that when > using apply_aspect with adjustable as box, you have to have freedom to > change one of the axes, and this is not in general consistent with > sharing both axes--though it may be in particular cases. > > Very likely there is a way of refining the logic, but beware: getting > aspect ratio control to work under a wide range of conditions, including > all sorts of zooming and resizing, is tricky and laborious. It is much > easier to break it than to fix it, and the breakage can be hard to spot. > > Eric >
"box-forced" must be only used in a very limited cases when axes sharing is okay. For example, when both x and y axis are shared and both axes have same aspect ratio and the original axes position of both axes have same width and height. Hm, maybe it is better to limit the visibility of the "box-forced" option from normal users. For the issue of the Basemap using ax.set_aspect('equal',adjustable='box',anchor=self.anchor) I think (adjustable="box") is not necessary here. Simply using ax.set_aspect('equal',anchor=self.anchor) should work and it will also resolve the compatibility issue with axes_grid toolkit. But this issue should be addressed by Jeff. I'm not quite familiar with Basemap. Regards, -JJ ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel