Skip to content
Code sample for generating a heatmap from open data using python
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
heatmaps
mappa
snippets
.gitignore
LICENSE.txt
Makefile
README.md
render.py
requirements-dev.txt
requirements.txt
setup.cfg

README.md

Heatmap generation using python

Installing prerequisites

Prerequisites can be installed by running the following command:

make configure

This command will install the requiements required to generate the heatmap and some development packages.

Build the heatmap

The heat maps can be generated by running the following command:

make build state=$(STATE)

Where $STATE is the name of the desired state for the heatmap. See mappa/config.py for the list of names available.

An special all keyword has been added to generate all the available states. e.g.

make build state=all

These commands will place the generated PNG images at the root of the repository. See heatmaps/ for the provided generated graphics.

Clean up generated heatmaps

This command can be used to clean up the PNG images generated at the root of the repository.

make clean
You can’t perform that action at this time.