title: Quantile-Quantile Plot using python statsmodels api
body: <p>I am trying to see whether a normal distribution with specific parameters fits to a data set. However it seems qqplot does not work as it is expected to. The following small example shows this: </p>
  
  <pre><code>import numpy as np
  import statsmodels.api as sm
  import pylab
  
  test = np.random.normal(20,5, 1000)
  
  sm.qqplot(test, loc = 20, scale = 5 ,  line='45')
  pylab.show()
  </code></pre>
  
  <p>As one can see I expect the points to be around the line with slope = 1 but it gives the following figure:</p>
  
  <p><a href="https://i.stack.imgur.com/6fVaZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6fVaZ.png" alt="q-q plot"></a></p>
  
  <p>Can anyone explain me why this happens?</p>