Skip to content

Instantly share code, notes, and snippets.

@MortisHuang
Last active February 18, 2019 13:51
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 MortisHuang/8c489ffdaf22dc973a88247f6a967677 to your computer and use it in GitHub Desktop.
Save MortisHuang/8c489ffdaf22dc973a88247f6a967677 to your computer and use it in GitHub Desktop.
# create the annotations box
im = OffsetImage(arr[0,:,:], zoom=5)
xybox=(50., 50.)
ab = AnnotationBbox(im, (50,50), xybox=xybox, xycoords='data',
boxcoords="offset points", pad=0.3, arrowprops=dict(arrowstyle="->"))
# add it to the axes and make it visible
ax.add_artist(ab)
ab.set_visible(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment