Lorenz Attractor plot in C with GNUplot
| src | lorenz attractor w/ gnuplot | |
| LICENSE | lorenz attractor w/ gnuplot | |
| main.c | lorenz attractor w/ gnuplot | |
| Makefile | lorenz attractor w/ gnuplot | |
| README.md | add readme | |
| recording.gif | add readme | |
Lorenz Attractor
This was a little C project I did a while back to generate and visualize Lorenz Attractors with GnuPlot. It was fun! I got stuck trying to take it a step further to have a GTK window with input controls, so as to set different starting values and re-run the simulation. Turned out that Wayland (my OS) doesn't support embedding GnuPlot via pipe, only X11, so I stopped there.
The GnuPlot API was not so straightforward, using of 1-2 char shortcuts for arguments made it harder than necessary to parse out what a command was doing from examples found "in the wild". Nevertheless, after chasing my tail for a while, I was able to figure out how to get a color gradient set the way I wanted. A live recording of the final result is shown below: