Circular Barplot
A circular barplot is pretty much the same as a barplot, but using polar coordinates instead of cartesian coordinates. They are a bit tricky to build with Python
and less accurate than usual barplot, but they come with an eye-catching effect that sometimes make them worth it.
Circular barplot with Matplotlib
Matplotlib
allows to build circular barplots thanks to the polar
Layout option of the subplot()
function. Examples below should guide you from the most simple version to some more customization.
It starts by explaining how the polar coordinates of matplotlib
works, show how to use it to draw bars and finally goes into the trickiness of adding labels.
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
.