import seaborn as sns sns.residplot(x, y) plt.show()