Heatmap Continent Transparency

I need to make the land areas transparent in my heatmaps because I am
overlaying them on a Google map, as you can see here,
http://pmc.ucsc.edu/~joeyajames/
I tried m.fillcontinents(color='white', alpha=0.0), but that doesn't work.
Without the fillcontinents() statement the land is red, and changing the
alpha only controls how much red shows through the white. Somehow I think I
need to mask out the data points on the land so the heatmap doesn't make
them red. Any tips?

m = Basemap(llcrnrlon=MIN_LON, llcrnrlat=MIN_LAT, urcrnrlon=MAX_LON,
urcrnrlat=MAX_LAT,
  resolution='l',area_thresh=10000.,projection='merc',lat_ts=20)
  
lons, lats = np.meshgrid(lons1,lats1)
nlats = 3*topoin.shape[0]
nlons = 3*topoin.shape[1]
lons = np.linspace(MIN_LON, MAX_LON, nlons)
lats = np.linspace(MIN_LAT, MAX_LAT, nlats)
lons, lats = np.meshgrid(lons, lats)
x, y = m(lons, lats)
topo = interp(topoin,lons1,lats1,lons,lats,order=1)

minval, maxval = get_range2(topo)
m.pcolormesh(x,y,topo,cmap=plt.cm.jet,vmin=minval,vmax=maxval)

m.colorbar()
# m.fillcontinents(color='white')
m.drawcountries()
m.drawcoastlines()

plt.show()
fig.savefig(filename, bbox_inches='tight', transparent=True)

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Heatmap-Continent-Transparency-tp46707.html
Sent from the matplotlib - users mailing list archive at Nabble.com.