On Tue, Apr 24, 2012 at 9:39 AM, Bruce Ford <bruce@clearscienceinc.com> wrote:

I often produce images for use in .KML with Google Earth.  Sometimes I need the masking effect of matplotlib.toolkits.basemap.Basemap.fillcontinents but in the case of Google Earth, I need to make continents transparent on the final image.  Any ideas on how to do this?



Have you tried setting the color argument in fillcontinents() with a RGBA tuple?  Even if that doesn't work, you still have a list of matplotlib.patches.Polygon objects being returned by the function.  You could then call set_alpha() on each of them to a transparency value of choice.

I hope that helps!
Ben Root