Answers for "matplotlib pie chart example"

4

python pie chart

import matplotlib.pyplot as plt
labels = ['Python', 'C++', 'Ruby', 'Java']
sizes = [215, 130, 245, 210]
# Plot
plt.pie(sizes, labels=labels, 
        autopct='%1.1f%%', shadow=True, startangle=140)
plt.axis('equal')
plt.show()
Posted by: Guest on November-19-2020

Code answers related to "matplotlib pie chart example"

Python Answers by Framework

Browse Popular Code Answers by Language