Answers for "show image using matplotlib"

C
1

show image in matplotlib

%pylab inline
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('your_image.png')
imgplot = plt.imshow(img)
plt.show()
Posted by: Guest on March-10-2021
4

show image in python

from PIL import Image

#read the image
im = Image.open("sample-image.png")

#show image
im.show()
Posted by: Guest on November-01-2020

Code answers related to "C"

Browse Popular Code Answers by Language