Cartogram

logo of a chart:Cartogram

A cartogram is a map in which each region size is distorted according to a numeric variable. Python allows to draw this kind of map thanks to the Geopandas and Geoplot libraries

😔 Cartogram with Python

Unfortunately, there is no direct method to build cartograms in Python. However, if you need to create one, you can easily build cartograms in R using the cartogram package.

If you have implemented a cartogram algorithm in Python, please share your code with the community by opening an issue on the GitHub repository of the gallery.

The only kind of cartogram implemented in Python is the non-contiguous cartogram that preserves shape but change size. And the good news is that we have a tuto on the Gallery!

Non contiguous cartogram made with Python

Other kind of maps

The gallery provides numerous map examples for you to explore. Browse the examples below:

300 projects

💡 Out of dataviz inspiration?

I have spent years collecting the most beautiful data visualizations out there. Get the list of my top 300 dataviz projects, hand-picked, for free.

I respect your privacy. Unsubscribe anytime.