1

I have a dictionary of countries (by their 2 letter country code), and the population density of each country.

I'd like to create a map with each country colored according to a color bar of density, with the country boundries drawn.

I've tried using the basemap package, like in this notebook

This piece of code works for the US countries. But I want to do it worldwide.

eran
  • 14,496
  • 34
  • 98
  • 144
  • This might help: http://stackoverflow.com/questions/13397022/fill-countries-in-python-basemap – Molly Aug 18 '14 at 19:22
  • I think this [post](http://ramiro.org/notebook/basemap-choropleth/) could be really useful. ![](http://i4.tietuku.com/08e327b15bba3a22.png) It use shapefile of each countries to define the contour boundaries. – Han Zhengzu Dec 30 '15 at 09:57

0 Answers0