Created
March 5, 2015 00:11
-
-
Save jklymak/948629b1627401686e6d to your computer and use it in GitHub Desktop.
Change format of cursor co-ordinates in figures to map projection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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