8

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.

kari.patila
  • 1,071
  • 2
  • 15
  • 26

2 Answers2

6

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/

joeforker
  • 40,459
  • 37
  • 151
  • 246
1

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

Community
  • 1
  • 1
pelson
  • 21,252
  • 4
  • 92
  • 99