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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -