Sometimes you may want to stretch out width or change the height of the plot in matplotlib plot. Here is an easy way to do it. import matplotlib.pyplot as plt plt.figure(figsize=(x,y)) Here, x specifies the width of plot in inches and y specifies the height of plot in inches. The default value is (8,5) for (x,y).