Plotting Pie Charts
Another chart that is popular is the pie chart. A pie chart is a circular statistical graphic divided into slices to illustrate numerical proportions. A pie chart is useful when showing percentage or proportions of data. Consider the following sets of data representing the various browser market shares:
labels = ["Chrome", "Internet Explorer", "Firefox","Edge","Safari", "Sogou Explorer","Opera","Others"]marketshare = [61.64, 11.98, 11.02, 4.23, 3.79, 1.63, 1.52, 4.19]
In this case, it would be really beneficial to be able to represent the total market shares as a complete circle, with each slice representing the percentage held by each browser.
The following code snippet shows how you can plot a pie chart using the data that we have:
%matplotlib inlineimport matplotlib.pyplot as pltlabels = ["Chrome", "Internet Explorer",...