Seaborn的lmplot能在对数-对数坐标轴上绘图吗?
这是带有线性坐标轴的lmplot:
这是带有线性坐标轴的lmplot:
import numpy as np
import pandas as pd
import seaborn as sns
x = 10**arange(1, 10)
y = 10** arange(1,10)*2
df1 = pd.DataFrame( data=y, index=x )
df2 = pd.DataFrame(data = {'x': x, 'y': y})
sns.lmplot('x', 'y', df2)
![sns.lmplot('x', 'y', df2)][2] [2]: https://istack.dev59.com/FXbtg.webp
seaborn.regplot
会更容易。 - mwaskomlmplot
? - mwaskom