title: Scipy and the beta distribution: is is possible to change the range of x values?
body: <p>The beta distribution is usually specified in the interval x = [0,1]. However different x bounds can also be specified (see figure below). How can I refine the python code below to reproduce the figure?</p>
  
  <p><img src="https://i.stack.imgur.com/htDB9.png" alt="enter image description here"></p>
  
  <p>My attempt (uncomplete!):</p>
  
  <pre><code>from scipy.stats import beta
  import matplotlib.pyplot as plt
  import numpy as np
  a =  2
  b = 2
  x = np.arange (0.01, 1, 0.01)
  y = beta.pdf(x,a,b)
  plt.plot(x,y)
  </code></pre>