python-cartogram - compute continuous cartograms

python-cartogram - compute continuous cartograms#

A map showing the nine federal provinces of Austria, distorted in a way that their relative areas relate to their population numbers.

The nine federal provinces of Austria, distorted so their area sizes match their population numbers#

python-cartogram is a Python package that can be used to compute continuous cartograms. These map-like cartographic visualisations, also known as anamorphic maps, show areal features distorted by an attribute value, for instance census tracts resized by population size, or election districts by voter counts. Learn more about anamorphic maps here.

The package is modelled after the QGIS plugin cartogram3. Just like it, python-cartogram implements the iterative, approximating algorithm by Dougenik et al. (1985), but it is designed to seamlessly interact with a geopandas.GeoDataFrame.