On 6/10/10 3:28 PM, Benjamin Root wrote:
On Thu, Jun 10, 2010 at 1:00 PM, Jae-Joon Lee <[email protected] <mailto:[email protected]>> wrote:On Thu, Jun 10, 2010 at 12:47 PM, Benjamin Root <[email protected] <mailto:[email protected]>> wrote: > P.S. - I have found a 'bug' of sorts with using 'box-forced' for Basemap and > AxesGrid. For the displayed plot, if one were to zoom in on one of the > plots, the other plots will zoom in as well (which I think is neat), but > they won't update their bbox to completely match the zoomed-in axes. I > guess this would be an argument against using 'box-forced'? By default, x-axis is shared along the axes in a same column and y-axis is shared along the axes in a same raw. i.e., in your example, only the y-axis are shared which I think is the source of your issue. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axesgrid I think what you want is to use share_all=True. grid = AxesGrid(fig, 111, nrows_ncols=(1, 3), axes_pad=0.1, share_all=True, cbar_mode='single', cbar_pad=0.05, cbar_size=0.08, ) Is this solve your problem? Regards, -JJNot that it was a "problem" per se, just merely an observation I had. Anyway, I tried that and indeed, zooming on one box zoomed all of the other boxes the same way. Might be good to include in the basemap examples, maybe?Thanks, Ben Root
Ben: I've added a new example (fcstmaps_axesgrid.py) that does this. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : [email protected] 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
------------------------------------------------------------------------------ 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-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
