Question

Using basemap it's easy to plot a set of coordinates, like so:

x, y = m(lons, lats)    
m.plot(x, y, 'go')

but would it be possible to use an image instead of the green circle ('go')? I didn't find a direct way of doing this from the documentation.

So, let's clarify this a bit: I'm using a map generated with basemap as a background and would like to plot some .png images on top of it instead of the regular plain markers.

Was it helpful?

Solution

If you want to draw .png images then you should try http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow

You might also be interested in the Matplotlib Basemap toolkit. http://matplotlib.sourceforge.net/basemap/doc/html/

OTHER TIPS

For your reference, I answered a similar question to this the other day: Python Matplotlib Basemap overlay small image on map plot

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top