Search code examples
pythonchartsdata-visualizationpie-chartwaffle-chart

How to make a pictogram / icon chart?


Is there a method to produce a pictogram-chart with python (be it with matplotlib, seaborn, ggplot, etc.)? — I am not sure, which term is the most standard-term for this type of graphs, maybe also: square pie chart, pictograph, icon chart, picture chart, pictorial unit chart. R has the package waffle for this. What I mean is something like this:

apples (11): OOOOOOOOOOO

pencils (3): / / /

This type of charts was a fundamental method for Otto Neurath. But how can I plot such a chart with python?


Solution

  • There is a PyWaffle python package (available on github or via 'pip install pywaffle' from PyPI) which leverages matplotlib to create waffle plots.