width and length figure matplotlib code example
Example 1: plt figsize
plt.figure(figsize=(20,10))
Example 2: plot size
fig.set_size_inches(18.5, 10.5, forward=True)
plt.figure(figsize=(20,10))
fig.set_size_inches(18.5, 10.5, forward=True)