+-------------------------- Benjamin Root -----------+
> Why not something like this:
> 
> fig = plt.figure()
> grid = AxesGrid(...)
> bm = Basemap(...)
> for ax in grid :
>     x, y = bm(lon, lat)
>     ax.scatter(x, y, vmin=globalmin, vmax=globalmax)
> 
> I do variations of this all the time.

Thanks for the tip, this is not going to work because
Basemap() draws a map onto i want to plot, however you
pointed me in the right direction - Basemap() has an
ax=... option:

fig = plt.figure()
grid = AxesGrid(...)
for ax in grid:
    bm = Basemap(..., ax=ax)
    bm.draw...
    x, y = bm(lon, lat)
    im = ax.scatter(x, y, vmin=...)

grid.cbar_axes[0].colorbar(im)

this works in principle, but however i can't increase
the size of the grid.

even if i try something like:

fig = plt.figure(1, (15,18))
fig.subplots_adjust(left=0.01, bottom=0.01,
                    right=0.99, top=0.99)
grid = AxesGrid(fig, 132,
                nrows_ncols = (2, 2),
                axes_pad = 0.1,
                cbar_location = "top",
                cbar_mode="single",
               )
i get a small grid in the center with lots of white
space around.

someone knows about that?

Best regards, yoshi

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to