我想绘制直线 - 直线,对数线性,线性 - 对数和对数回归到我的seaborn图表没有转化变量的值。
我得到的结果为直线 - 直线,直线日志,甚至为了2,但可以请你帮我数数,沿着王氏传说对数线性
ax = sns.regplot(x=X, y=y,ci=None)
ax = sns.regplot(x=X, y=y,ci=None,logx=True)
ax = sns.regplot(x=X, y=y,ci=None,order=2)
ax = sns.regplot(x=X, y=y,ci=None,order=3)
谢谢
您可以使用matplotlib axes
此
import matplotlib.pyplot as plt
# log-log
f, ax = plt.subplots()
ax.set(xscale='log', yscale='log')
sns.regplot(x=X, y=y, ci=None, ax=ax)
# log-linear
f, ax = plt.subplots()
ax.set(xscale='linear', yscale='log')
sns.regplot(x=X, y=y, ci=None, ax=ax)