Background Map


The first step of any geo-spatial data analysis is to draw the background map of the area of interest. This section explains what are the main ways to build it with Python. It is the foundation of the next sections that will add some data on top of it.

Geopandas and GeoPlot

Seaborn is another great alternative to build an area chart with python. The below examples show how to start basic, apply usual customization, and use the small multiple technique for when you have several groups to compare.

Folium for google maps style maps

Folium is a wrapper of the leaflet.js javascript library. It allows to make all the data wrangling with python, and benefit the power of javascript for interactive data visualization.

The map below has been created with folium... with 1 line of code only! 😍



Folium allows different types of background tiles. Here is an example with a tile called Stamen Toner:



It is also possible to add markers with associated popups on top of the map:

Background map with Basemap

Seaborn is another great alternative to build an area chart with python. The below examples show how to start basic, apply usual customization, and use the small multiple technique for when you have several groups to compare.

Contact

👋 This document is a work by Yan Holtz. Any feedback is highly encouraged. You can fill an issue on Github, drop me a message onTwitter, or send an email pasting yan.holtz.data with gmail.com.

Violin

Density

Histogram

Boxplot

Ridgeline

Scatterplot

Heatmap

Correlogram

Bubble

Connected Scatter

2D Density

Barplot

Spider / Radar

Wordcloud

Parallel

Lollipop

Circular Barplot

Treemap

Venn Diagram

Donut

Pie Chart

Dendrogram

Circular Packing

Line chart

Area chart

Stacked Area

Streamgraph

Timeseries with python

Timeseries

Map

Choropleth

Hexbin

Cartogram

Connection

Bubble

Chord Diagram

Network

Sankey

Arc Diagram

Edge Bundling

Colors

Interactivity

Animation with python

Animation

Cheat sheets

Caveats

3D