import matplotlib as mpl mpl.rcParams['lines.linewidth'] = 2 mpl.rcParams['lines.linestyle'] = '--' mpl.rcParams['font.size'] = 20