Skip to content

Instantly share code, notes, and snippets.

@jklymak
Created March 5, 2015 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jklymak/948629b1627401686e6d to your computer and use it in GitHub Desktop.
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