Answers for "what is pie chart definition in matplotlib"

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 "what is pie chart definition in matplotlib"

Python Answers by Framework

Browse Popular Code Answers by Language