function_plotting_py.ipynb
import numpy,pylab
def gen(n):
i=1; xyi=[.1,.01]
while i<=n:
yield xyi; i+=1; xi,yi=xyi[0],xyi[1]
xyi=[xi+.684*(xi-xi**2+yi),yi+.684*(yi-yi**2+xi)]
n=50000; xy=gen(n); xyn=numpy.array([el for el in xy])
pylab.figure(figsize=(10,10)); ax=pylab.gca(); ax.set_facecolor('black')
pylab.scatter(xyn[:,0],xyn[:,1],s=.03,c=[numpy.random.random(3)])
pylab.grid(c='slategray',alpha=.4); pylab.show()