Download our e-book of Introduction To Python
Palak Punjabi
5 months ago
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
img = mpimg.imread('mtplogo.png')
plt.imsave("logo.png", img, cmap = 'gray', origin = 'lower')
imgplot = plt.imshow(img)