On Tue, Apr 24, 2012 at 9:39 AM, Bruce Ford <br...@clearscienceinc.com>wrote:
> All,
>
> 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?
>
> Thanks!
>
> Bruce
>
>
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users