Skip to content

Instantly share code, notes, and snippets.

@albertovilla albertovilla/read_show.py
Last active Dec 9, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.