On 6/10/10 12:00 PM, Jae-Joon Lee wrote:
> On Thu, Jun 10, 2010 at 12:47 PM, Benjamin Root<ben.r...@ou.edu>  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,
>
> -JJ
>    

Thanks Jae-Joon:  Since I couldn't see any problem with removing 
adjustable='box' from Basemap, I went ahead and did it (and added an 
example that uses AxesGrid).  AFAICT, a problem will only occur if the 
user explicit does ax_set_adjustable('datalim').

-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : jeffrey.s.whita...@noaa.gov
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to