1
0
Fork
You've already forked lorenz-attractor
0
Lorenz Attractor plot in C with GNUplot
  • C 93.8%
  • Makefile 6.2%
2025年11月07日 07:58:33 +08:00
src lorenz attractor w/ gnuplot 2025年11月07日 07:47:01 +08:00
LICENSE lorenz attractor w/ gnuplot 2025年11月07日 07:47:01 +08:00
main.c lorenz attractor w/ gnuplot 2025年11月07日 07:47:01 +08:00
Makefile lorenz attractor w/ gnuplot 2025年11月07日 07:47:01 +08:00
README.md add readme 2025年11月07日 07:58:33 +08:00
recording.gif add readme 2025年11月07日 07:58:33 +08:00

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:

Lorenz Attractor being drawn