jonnyhyman / Chaos
- суббота, 1 февраля 2020 г. в 00:19:59
Python
Visualizations of the connections between chaos theory and fractals through the logistic map; made for Veritasium YouTube video
This code was developed for this YouTube video from Veritasium
This is not a library, but rather a collection of standalone scripts! As such, there is a bit of code duplication between scripts.
pip install numpypip install numbapython logistic_interactive.py

pip install pyqt5pip install pyqtgraphThis visualization creates a cobweb plot, time series graph, and bifurcation plot for visualizing the logistic map. The font pictured is "Avenir Next" which is licensed as part of macOS. Other OSes will see their default font.
Here we see the Mandelbrot set on the x-y plane, and iterations of the Mandelbrot set in the z axis. This reveals the bifurcation plot beneath the Mandelbrot set!
Final visualization is accomplished by a volume rendering of 1000x1000x1000 voxels, oversampled by 16 to reduce aliasing.
pip install vispypip install matplotlibpip install pyopenglbrew install ffmpegchoco install ffmpegpip install vispy