python 回归拟合图形展示

import numpy as np
import pandas as pda
import matplotlib.pyplot as plt
import matplotlib as mpl
import seaborn as sns

sns.set()#color_codes=True
np.random.seed(sum(map(ord,"regression")))
tips=sns.load_dataset("tips")
print(tips.head())

#regplot implot绘制回归关系
sns.regplot(x="total_bill",y="tip",data=tips)
plt.show()

你可能感兴趣的:(Python)