I’m trying to find the source for this particular image
I assume you’re trying to use basemap/matplotlib? This sounds familiar, I’m sure I had the same problem.
A lot of the drawing routines in the Basemap class (like drawCoastlines) have an optional zorder parameter.. try setting this to 0 (zero) for the coastlines and continents, and use a higher number for your markers…
…
Report on the zorder parameter:
It seems to work well when using pcolor,
contour, contourf or any draw* methods of
the Basemap class but it has no effect on
imshow… imshow plots are still applied
as a background of any maps.
Hi Steven,
This figure sounds very interesting to me.
I’m trying to add images on a map as if
it was simple markers.
I tried to use the imshow method but
the image is systematically included
in the background (i.e. behind coastlines).
I’m stuck with this problem …
some ideas?
Hi Zac,
I’m trying to find the source for this particular image
I assume you’re trying to use basemap/matplotlib? This sounds familiar, I’m sure I had the same problem.
A lot of the drawing routines in the Basemap class (like drawCoastlines) have an optional zorder parameter.. try setting this to 0 (zero) for the coastlines and continents, and use a higher number for your markers…
hope that helps!
Dear Steven,
Yes I’m trying to use basemap/matplotlib.
I’ll play with the zorder parameter and
keep you informed on this!
Kind regards,
Zac
…
Report on the zorder parameter:
It seems to work well when using pcolor,
contour, contourf or any draw* methods of
the Basemap class but it has no effect on
imshow… imshow plots are still applied
as a background of any maps.