I\'m using factorplot(kind=\"bar\")
.
How do I scale the y-axis, for example with log-scale?
I tried tinkering with the plot\'s axes, but that al
You can use Matplotlib commands after calling factorplot
.
For example:
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(style="whitegrid")
titanic = sns.load_dataset("titanic")
g = sns.factorplot("class", "survived", "sex",
data=titanic, kind="bar",
size=6, palette="muted", legend=False)
g.fig.get_axes()[0].set_yscale('log')
plt.show()