I'm trying to fit a von Mises distribution, from scipy (http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.vonmises.html)
So I tried
from scipy.stats import vonmises
kappa = 3
r = vonmises.rvs(kappa, size=1000)
plt.hist(r, normed=True,alpha=0.2)
It returns
However, when I fit the data on it
vonmises.fit(r)
# returns (1.2222011312461918, 0.024913780423670054, 2.4243546157480105e-30)
vonmises.fit(r, loc=0, scale=1)
# returns (1.549290021706847, 0.0013319431181202394, 7.1653626652619939e-29)
But none of the value returned is the parameter of Von Mises, kappa.
What is the returning value? Ifeel the second is loc, or mean value. But have no idea what the first returned value is.
And how should I fit a von mises distribution?

kappa,loc,scale. - dbliss