Skip to content

Instantly share code, notes, and snippets.

@manvillej
Last active October 9, 2017 18:48
Show Gist options
  • Save manvillej/755821a845754c35fbf23078173a99c7 to your computer and use it in GitHub Desktop.
Save manvillej/755821a845754c35fbf23078173a99c7 to your computer and use it in GitHub Desktop.
Basic example of using axes in python. X is data from a png image. Xrecovered is the compressed image.
import matplotlib.pyplot as plt
# Display the original image
f, (ax1, ax2) = plt.subplots(1,2)
ax1.imshow(X)
ax1.set_title('Original')
ax2.imshow(XRecovered)
ax2.set_title('Compressed')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment