import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from matplotlib.pyplot import figure
figure(num=None, figsize=(8, 6), dpi=180, facecolor='w', edgecolor='k')
testimg=mpimg.imread('divpoly.jpg')
imgplot = plt.imshow(testimg)
#pythoncode #imageresize #matplotlib