I want to fit some distribution, say gamma, to a given data array x, and plot the corresponding density function. I can make this easily via seaborn.distplot and scipy.stats:
sns.distplot(x, fit = stats.gamma)
However, let's say that I want some parameters of this distribution to remain fixed, for example loc. When I'm using fit function from scipy.stats with fixed loc, I write it as
stats.gamma.fit(x, floc = 0)
Is there a way to pass loc=0 to fit in distplot function and achieve the same result?