A Jupyter notebook repository for plotting reported bike theft (bikewise.org) from January 1, 2018 to April 3, 2020.
plot_bikewise.ipynb
and gif_generator.ipynb
complement each other in:
- Gathering line plots of reported bike thefts from Bikewise.
- Converting these figures to a gif.
This script requires Python 3.5 and above. Please see requirements.txt
for required Python libraries. Clone this repository and use pip
to install the necessary libraries, like this:
pip install -r requirements.txt
Run plot_bikewise.ipynb
entirely. Figures will accumulate in the ./figs
directory.
Then, run the entirety of gif_generator.ipynb
. Provide an appropriate name for your gif when prompted in main()
. This will create a .gif file of your .png images in the ./gifs
directory.
A .png file can range from 30kb to >200kb in size. Accumulating thousands of figures can lead to a large .gif file. For example, ~1000 figures could lead to a ~ 200 MB gif image.
Please let me know if you have any questions.
Fin