【发布时间】:2020-09-13 16:58:05
【问题描述】:
我尝试绘制一个带有对数比例轴的 relplot。 利用之前的answers,我试过了:
import matplotlib.pyplot as plt
import seaborn as sns
f, ax = plt.subplots(figsize=(7, 7))
ax.set(xscale="log", yscale="log")
tips = sns.load_dataset("tips")
sns.relplot(x="total_bill", y="tip", hue='smoker', data=tips)
plt.show()
但是结果中的轴没有改变。
我该如何解决这个问题?
【问题讨论】:
标签: python matplotlib seaborn