title: bifurcation diagram with python
body: <p>I'm a beginner and I don't speak english very well so sorry about that.
  I'd like to draw the bifurcation diagram of the sequence :
  x(n+1)=u<em>x(n)</em>(1-x(n)) with x(0)=0.7 and u between 0.7 and 4.</p>
  
  <p>I am supposed to get something like this :</p>
  
  <p><a href="https://i.stack.imgur.com/T4gyF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/T4gyF.png" alt="https://i.stack.imgur.com/T4gyF.png"></a></p>
  
  <p>So, for each value of u, I'd like to calculate the accumulation points of this sequence. That's why I'd like to code something that could display every points (u;x1001),(u;x1002)...(u;x1050) for each value of u.</p>
  
  <p>I did this :</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  P=np.linspace(0.7,4,10000)
  m=0.7
  Y=[m]
  l=np.linspace(1000,1050,51)
  for u in P:
      X=[u]
      for n in range(1001):
        m=(u*m)*(1-m)
      break 
      for l in range(1051):
        m=(u*m)*(1-m)
        Y.append(m)
  plt.plot(X,Y)
  plt.show()
  </code></pre>
  
  <p>And, I get a blank graphic.</p>
  
  <p>This is the first thing I try to code and I don't know anything yet in Python so I need help please.</p>