11 Jul 2020 - Conan Mercer
The previous pie chart did little in the way of effort towards presentation. MatPlotLib is a very powerful library that can be manipulated and customized to a large degree. Below in Figure 2 we use the same data as in Figure 1, however this time we punch a hole in the middle to give resemblance to a donut, we also add a title and change the colour scheme. Also present in the code is a method to output the pie chart, with two options, the file path and also the desired resolution in dots per inch (dpi).
Sometimes it might not be appropriate to use colour. An obvious example is that people with colour blindness may have difficulty differentiating between parts of a plot. Another is that colour is a subjective entity, some may like the colours you choose, others may not. To rule these problems out I often use a gray scale to show differences between data sets, see Figure 3.