Pie Plot

A Pie Chart is a circle divided into sectors that each represent a proportion of the whole. It is one of the most common viz type, but also probably the most criticized. In python, they are most of the time done thanks to the pie() function of the Matplotlib library.

Matplotlib logoPie chart with Matplotlib

The examples below should guide you through the pie() function usage. It starts basics and then show how to add labels, customize colors and more.


👋 This document is a work by Yan Holtz. You can contribute on github, send me a feedback on twitter or subscribe to the newsletter to know when new examples are published! 🔥