python seaborn lmplot regplot for y-log scale fit -
i wondering why seaborn lmplot , regplot has option logx. have frequent use linearly fit log(y) ~ x , y-axis should in log scale show correlation (as convention).
is can done in seaborn?
an option of logy=true nice...
thanks.
you can set y-axis scale log with:
import seaborn sns; sns.set(color_codes=true) tips = sns.load_dataset("tips") ax = sns.regplot(x="total_bill", y="tip", data=tips) ax.set_yscale('log') # set_yscale function, not string
Comments
Post a Comment