I like to create graphs using script.
Yesterday, I plotted the bifurcation diagram of x^2 + c.
Abusing 1x1 divs as though they were pixels.
So that's not very efficient. Page took 10 seconds to load and generated 24,000 elements.
What I'm looking for is some kind of prgrammable pixel map so I can play visually without hacking HTML.
Someting with a relatively complete programming language, like
I wonder if FFX's new CANVAS element can help me. I need to be able to code something like:
canvas</font><font color="#007700">.</font><font color="#0000bb">drawPixel</font><font color="#007700">(</font><font color="#0000bb">28</font><font color="#007700">,</font><font color="#0000bb">447</font><font color="#007700">,</font><font color="#dd0000">'red'</font><font color="#007700">);
and wrap that in a for loop etc and generally fo funky things.
Does anyone know such a thing?
A Java appl(et/ication), maybe?
In Java natively, I think you can use just the AWT library, but I don't know Java. In general [python, perl, java] you can use the wxwindows library wxDC object, and drawPoint(x,y) and setpen(pen) to do exactly what you want. Tk and Gtk also have such objects, but I don't know what they're called off the top of my head. You can do anything like that in OpenGL, you might want to look at OpenGL libraries for the language of your choice, instead.
It basically uses positionally placed divs as pixels, however, since a pixel-per-div arrangement is bad, it uses special algorithms to stretch the divs whenever possible. It's an amazing feat, IMO, and it seems to work fairly well. I love the function grapher:
I thank you all for your suggestions. I ended up doing it with the CANVAS element available in FFX 1.5 and Safari.
Firefox sometimes crashes with certain numbers, even though it used to just plod on using Infinity as formula seed, drawing a straight vertical line.
It also crashes if I use 700 (or more) as the C count.
Great fun, nonetheless.