Last active
October 9, 2017 18:48
-
-
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.
This file contains hidden or 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
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