Pie charts! A Business 101 favorite, and a common way of presenting percentages. We'll see in this recipe how to plot a pie chart, with different slices representing proportions.
We need to install matplotlib in our virtual environment using the following commands:
$ echo "matplotlib==2.2.2" >> requirements.txt
$ pip install -r requirements.txt
If you are using macOS, it's possible that you get an error like this—RuntimeError: Python is not installed as a framework. See the matplotlib documentation on how to fix it: https://matplotlib.org/faq/osx_framework.html.