When i want to draw a hist pic that y-axis value is log(value). I couldn't use distplot to complete it directly.
So i think maybe we can add parameter "log“ in the function distplot just like this
def distplot(......,log=False):
...
if hist:
...
ax.hist(...,log=True or False)
...
...
What kind of difficulities are you facing? What happens when you set y to log scale like below?
ax = sns.distplot(some_fancy_data)
ax.set_yscale('log')
use hist_kws
ax.set_yscale('log') is a good solution, but will fail for histogram bins with 0 count.
sns.distplot(..., hist_kws={'log':True}) does not, however.
Most helpful comment
ax.set_yscale('log')is a good solution, but will fail for histogram bins with 0 count.sns.distplot(..., hist_kws={'log':True})does not, however.