Skip to content

Instantly share code, notes, and snippets.

@albertovilla
Last active December 9, 2018 09:57
Show Gist options
  • Save albertovilla/2b0fd599e3df8f1fc7c1a708606af215 to your computer and use it in GitHub Desktop.
Save albertovilla/2b0fd599e3df8f1fc7c1a708606af215 to your computer and use it in GitHub Desktop.
Read and Show image with pyplot #pyplot #images
# 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