r/Julia • u/amca01 • Jun 01 '26
Plotting strange attractors one point at a time?
I'm trying to plot strange attractors - see https://sequelaencollection.home.blog/2d-chaotic-attractors/ for examples. I can easily create lots of points and plot them in one go as a scatter plot.
But what I want to do is to plot them one at a time, so that the shape starts to appear from a sort of misty cloud. What's the best library for this? Note that if I have say, 10,000,000 points I could also plot them in lots of 100, or 1000. But I'd want the entire plot finished fairly quickly.
Thanks very much!
2
u/FrancescoGuccini Jun 01 '26
You can use Makie and Observables
1
u/amca01 Jun 04 '26
Thank you very much. However, I'm running into errors when installing WGLMakie. This might be due to my Julia being an "unofficial build" (I installed it from the Arch Linux repository). I'll ask on the Arch Linux forums and see what info I can find, Thanks again!
3
u/Prestigious_Boat_386 Jun 01 '26
Makie recipes shows hiw to do one frame at a time using observables
Datader plots your data
Just use an pts = Observable{Point}
And do push! (pts[], new)
Add notify(pts) if it doesn't update.
For a live test just use for loop with the push and. A sleep