Skip to content
Visualize the relationship between two rotating points as they complete a full period.
Jupyter Notebook Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
all.gif
gif.py
postBuild
requirements.txt
starlines.ipynb

README.md

starlines

Visualize the relationship between two rotating points as they complete a full period.

I saw a tweet a while back that drew lines between the Earth and Venus every certain amount of time and let it run for "8 years." Though the orbits were wildly out of scale, it made a really pretty picture. I decided to take a look at what the relationships look like for a wide variety of of periods.

I made a Jupyter Notebook that is hosted on binder so you can interact with it right from your browser: Binder

The refresh rate is pretty slow since you have to draw 1000 lines. I couldn't find an easy way to draw all the lines with one command so it loops through all points (send me a pull request if you do!). In the mean time, enjoy this gif of the prime numbers less than 100!

alt text

This repo also has the code I used to generate the primes gif. You will have to change the filepath in plt.savefig() to your own directory.

You can’t perform that action at this time.