import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = (20,3)
from matplotlib.pyplot import figure figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k')
fig.set_size_inches(18.5, 10.5, forward=True)