from matplotlib import pyplot as plt plt.rcParams['figure.figsize'] = [12, 8] plt.rcParams['figure.dpi'] = 100 # 200 e.g. is really fine, but slower