xpoints = ypoints = plt.xlim() plt.plot(xpoints, ypoints, linestyle='--', color='k', lw=3, scalex=False, scaley=False)