@TristanIsaac/

Pie Chart

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def main():
	import matplotlib.pyplot as plt

	# Sample data
	categories = ['Frogs', 'Hogs', 'Dogs', 'Logs']
	values = [15, 30, 45, 10]

	plt.pie(values, labels = categories, autopct='%1.1f%%')

	plt.savefig('Pie Chart')
	


main()