matplotliv figure size code example Example 1: matplotlib set size plt.figure(figsize=(20,8)) Example 2: change plot size matplotlib python plt.figure(figsize=(14,7))