Matplotlib | Pie Charts
Creating Pie Charts With Pyplot, you can use the pie() function to draw pie charts: Example A simple pie chart: import matplotlib.pyplot as pltimport numpy as np y = np.array([35, 25, 25, 15]) plt.pie(y)plt.show() Result: As you can see the pie chart draws one piece (called a wedge) for each value in the array (in this case [35, 25, 25, 15]). By default the plotting of …