Last active
December 9, 2018 09:57
-
-
Save albertovilla/2b0fd599e3df8f1fc7c1a708606af215 to your computer and use it in GitHub Desktop.
Read and Show image with pyplot #pyplot #images
This file contains 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 | |
import matplotlib.pyplot as plt | |
# Load the image | |
data = plt.imread('filename.png') | |
# Display the image | |
plt.imshow(data) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment