From ef697401bf256b0c82f0bcfa978aa83101227a6b Mon Sep 17 00:00:00 2001 From: VasundharaShenoy Date: Sat, 16 Oct 2021 07:07:13 +0530 Subject: [PATCH] Added Python program to make a Pie Chart --- .../Python_Programs/piechart.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Program's_Contributed_By_Contributors/Python_Programs/piechart.py diff --git a/Program's_Contributed_By_Contributors/Python_Programs/piechart.py b/Program's_Contributed_By_Contributors/Python_Programs/piechart.py new file mode 100644 index 0000000000..52b09d682f --- /dev/null +++ b/Program's_Contributed_By_Contributors/Python_Programs/piechart.py @@ -0,0 +1,7 @@ +import matplotlib.pyplot as plt +Partition = 'Holidays', 'Eating_Out', 'Shopping', 'Groceries' +sizes = [200, 150, 260, 24s0] +fig1, ax1 = plt.subplots() +ax1.pie(sizes, labels=Partition, autopct='%1.1f%%', shadow=True, startangle=90) +ax1.axis('equal') +plt.show() \ No newline at end of file