Skip to content

Instantly share code, notes, and snippets.

@smidm
Created January 6, 2016 09:10
Show Gist options
  • Save smidm/f5531ca25efcb497bee2 to your computer and use it in GitHub Desktop.
Save smidm/f5531ca25efcb497bee2 to your computer and use it in GitHub Desktop.
matplotlib: object text annotation with fixed object-annotation screen distance while zooming
# xy offset xy
plt.annotate('...text...', object_to_annotate_coords, (0, -20), textcoords='offset points', color='k')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment