>>11652120I'm no king haha but I used PyGame.
Simple version of how I graphed an equation:
Take the 12 coefficient polynomial P and a starting point (0,0)
Calculate the set {(0,0), P(0,0),P(P(0,0)),P(P(P(0,0))),...} for a couple million iterations.
Calculate a 2d histogram of this set, which I used numpy.histogram2d()
Using a slightly convoluted but not especially interesting brightness curve function, convert this histogram into an image with PyGame.
Now if you wanted, once you get the histogram, you could just throw the histogram into matplotlib.pyplot.imshow(). Even easier, don't even calculate the histogram and let matplotlib.pyplot.hist2d() do the work on the set of points for you.
my simple python code to generate the following matplot image was this:
def get_hist(coefs,rez=300,itr=1000):
p = get_poly(coefs)
start = np.random.random((2,3000))/10
out = poly_iter(p,start,itr)
out = out[50:]
out=np.rollaxis(out,1).reshape((2,len(out)*len(out[0][0])))
z=np.histogram2d(out[0],out[1],bins=rez)
return z
def disp(cs,itr = 1000):
z=get_hist(cs,itr=itr)[0]
z = np.log(z+1)
plt.imshow(z)
plt.show()