Giter VIP home page Giter VIP logo

bike-theft-plot's Introduction

bike-theft-plot

A Jupyter notebook repository for plotting reported bike theft (bikewise.org) from January 1, 2018 to April 3, 2020.

Introduction

plot_bikewise.ipynb and gif_generator.ipynb complement each other in:

  1. Gathering line plots of reported bike thefts from Bikewise.
  2. Converting these figures to a gif.

2018 - 2020 bike theft gif

Python Setup

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

Running the Notebooks

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.

GIF progress bar

Notes

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

bike-theft-plot's People

Contributors

dependabot[bot] avatar irahorecka avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.