Untitled

 avatar
unknown
plain_text
6 months ago
353 B
4
Indexable
import matplotlib.pyplot as plt

labels = 'Yes', 'No'
sizes = [8, 7]
explode = (0.1, 0)  # Only "explode" the "Yes" slice

plt.pie(sizes, explode=explode, labels=labels, autopct='%1.1f%%', shadow=True, startangle=90)
plt.axis('equal')  # Equal aspect ratio ensures that pie is circular
plt.title('Female Students: Enjoy Playing Video Games?')
plt.show()
Editor is loading...
Leave a Comment