python to make an iterative map
<p>I am trying to make an iterative map and plot it. I am just starting to learn python.
Here is my code: I feel  I am making an amature mistake in syntax, my code only gives my a straight line.</p>

<pre><code>N = 10000
aa = linspace(2, 4, N)
xx = zeros(N)
for jj in range(N):a = aa[jj]
x0 = rand()
for ii in range(1, 100): x0 = a *x0 *(1 -x0)
xx[jj] = x0
plot(aa, xx, '.')
</code></pre>

<p>What am I doing wrong?
thanks.</p>
