PyWaffle Documentation#
PyWaffle is an open source, MIT-licensed Python package for plotting waffle charts — also known as square pie charts, and, when drawn with icons, pictogram charts.
A waffle chart is a grid of blocks where one block stands for a fixed quantity, so a proportion is something the reader can count rather than estimate.
from pywaffle import waffle_chart
fig, ax = waffle_chart({"Survived": 710, "Lost": 1491}, rows=10, columns=10)
PyWaffle is also a Figure constructor class Waffle, which can be passed to matplotlib.pyplot.figure to generate a matplotlib Figure object. Both forms are fully supported — see the Quickstart.