matplotlib figure set_size_inches code example Example: matplotlib set size plt.figure(figsize=(20,8))