When plotting a global image using the robinson projection and the bluemarble
image, I have the problem that the image remains rectangular and goes beyond
the curved projection map boundaries (see attachment). Is there anyway around
this?
Cheers,
Momme
import mpl_toolkits.basemap as b
import numpy as np
def draw(center=11.,latres=10.,lonres=10.):
m = b.Basemap(projection='robin',lon_0=center)
m.drawcoastlines()
m.drawmapboundary()
m.drawmeridians(np.arange(0,360,lonres),color='0.5',labels=[0,0,0,1])
m.drawparallels(np.arange(-90,90,latres),color='0.5',labels=[1,0,0,0])
im=m.bluemarble()
return m
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users