Skip to content

Instantly share code, notes, and snippets.

@shgidi
Created May 9, 2017 08:56
Show Gist options
  • Save shgidi/3faab5b5ae6934c505865565d5bfc8d1 to your computer and use it in GitHub Desktop.
Save shgidi/3faab5b5ae6934c505865565d5bfc8d1 to your computer and use it in GitHub Desktop.
plt.imshow(np.array(Image.open(g[0]))[y-30:y+30,x-30:x+30])
currentAxis = plt.gca()
coords=[10,10],20,20
currentAxis.add_patch(plt.Rectangle(*coords, fill=False, edgecolor=color, linewidth=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment