Skip to content

Commit 733185a

Browse files
authored
Create Draw a Pie Chart.py
1 parent 60264c6 commit 733185a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Draw a Pie Chart.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import matplotlib.pyplot as plt
2+
Partition = 'Holidays', 'Eating_Out', 'Shopping', 'Groceries'
3+
sizes = [250, 100, 300, 200]
4+
fig1, ax1 = plt.subplots()
5+
ax1.pie(sizes, labels=Partition, autopct='%1.1f%%', shadow=True, startangle=90)
6+
ax1.axis('equal')
7+
plt.show()

0 commit comments

Comments
 (0)