A python script to produce choropleths and colored square- and hex-grid maps
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_possible_future_sources Removed extraneous to-do Aug 16, 2015
_sources
chorogrid Fix name of a Canadian federal riding. Oct 20, 2015
.gitignore minor update Aug 16, 2015
LICENSE Initial commit Aug 16, 2015
README.md
examples.png Added examples Aug 16, 2015
tutorial_1_Colorbin.ipynb
tutorial_2A_Chorogrid_Canadian_Election.ipynb
tutorial_2_Chorogrid.ipynb Added Canadian hexgrid, true row + true column Oct 12, 2015

README.md

chorogrid

A python script to produce choropleths and colored square- and hex-grid maps

Examples:

Examples

There are two classes, Chorobin to assign colors to quantities, and Chorogrid to make the maps.

Maps are made in SVG format; if you need to convert them to PNG you can do so in an external application like Inkscape or Adobe Illustrator, or in python with CairoSVG among other solutions.

Pro tip, because I made this mistake for a long time: it's "choropleth", not "chloropleth"; there's no L. The word comes from ancient Greek χώρα (khṓra, “location”) and πλῆθος (plêthos, “a great number”, same root as plethora), not χλωρός (khlōrós, “pale green”) as in chlorine and chlorophyll. Luckily Google knows enough to suggest the right one.