params = {'axes.titlesize': 20, 'xtick.labelsize': 16, 'ytick.labelsize': 16, 'axes.labelsize': 16} plt.rcParams.update(params)