Bug or feature: bbox of maps

Hi Arlindo: I’m not sure what changed in matplotlib to cause this
(I’m sure someone else on the list will). However, if you upgrade to
basemap 1.0.2/matplotlib 1.1.0 you can use the new matplotlib
colorbar method, which does what you want automatically without
having to use ax.get_position. If uses the axes_grid toolkit under
the hood to compute the correct location and size for the colorbar.
See

The examples at

use this.
Regards,
Jeff

···

http://matplotlib.github.com/basemap/api/basemap_api.html?highlight=colorbar#mpl_toolkits.basemap.Basemap.colorbar

http://matplotlib.github.com/basemap/users/examples.html