Untitled
unknown
plain_text
2 years ago
299 B
19
Indexable
import matplotlib.pyplot as plt
# Data
labels = ['Employed', 'Unemployed']
sizes = [14, 20]
# Create a pie chart
plt.pie(sizes, labels=labels, autopct='%1.1f%%', startangle=140)
plt.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
# Show the plot
plt.show()
Editor is loading...
Leave a Comment