From: Daniel M. <dan...@go...> - 2011-05-11 08:03:45
|
Hi Jae-Loon, thanks for your comments! Of course I do agree that a figure layout should not change in interactive mode. However, I don't see why this should happen upon a panning action. A different case is when the label or title font sizes are changed, but I was assuming this is adjusted prior to the creation of the figure. For the time being I am very happy with Tony's solution. It works nice most of the time, only very complex figures take forever now to be drawn. The current behavior *looks* broken to any user who does not understand the internals. And it's too likely that even simple figures look horrible. I'd definitely vote for a more end-user friendly solution (with end users I have scientific users in mind who generally appreciate the beauty of the generated plots but who don't integrated the library into some other application). Best regards, Daniel 2011/5/11 Jae-Joon Lee <lee...@gm...>: > On Fri, May 6, 2011 at 5:20 PM, Daniel Mader > <dan...@go...> wrote: >> From many postings here I have learned that >> this is the absolute intention, i.e. it is broken by design unless the >> programmer takes care about this. > > I think there are pros and cons, and I don't think the current design > is simply broken. > For example, it will be very distracting if the axes area changes > while you're doing some interactive stuff (e.g., panning). Anyhow I > admit that the default layout may not be optimal for figures with > multiple subplots, and there is a room for improvement. > > There are a few approach you can take. > > * If you're only interested in saved outputs, you may use savefig > with bbox_inches="tight". Note that this changes the size of figure. > > * Use Tony's script to adjust the subplot params automatically. > > * use axes_grid1 toolkit which enables you to change the axes > position on the fly. Check > http://www.mail-archive.com/mat...@li.../msg18743.html. > For current git master branch, check > examples/axes_grid/make_room_for_ylabel_using_axesgrid.py > > Regards, > > -JJ > |