Skip to content

Instantly share code, notes, and snippets.

@jklymak
Created March 5, 2015 00:11
Show Gist options
  • Select an option

  • Save jklymak/948629b1627401686e6d to your computer and use it in GitHub Desktop.

Select an option

Save jklymak/948629b1627401686e6d to your computer and use it in GitHub Desktop.
Change format of cursor co-ordinates in figures to map projection
map=Basemap()
ax = plt.gca()
def format_coord(x, y):
return 'x=%.4f, y=%.4f'%(map(x, y, inverse = True))
ax.format_coord = format_coord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment