We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60264c6 commit 733185aCopy full SHA for 733185a
Draw a Pie Chart.py
@@ -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