speen's space

a barnsley fern rendered in python's matplotlib

April 25, 2021 · math, programming, visualizations

I saw an interesting post on /r/factorio where a user had made a display out of lamps, and used them to plot a Barnsley fern.

Seeing that it could be achieved in Factorio’s circuit system, I thought it wouldn’t be too hard to try and render a Barnsley Fern in python’s popular plotting library, matplotlib. These are the results of those efforts.

an animation of a barnsley fern growing

more info

I read a lot for this project, here’s a short list of links that I found particularly useful.

view the code on github

You can view the code for this project in its repository on github, here.