jarrywen commited on
Commit
94fbdd3
1 Parent(s): 1e6fe46

Delete pie.py

Browse files
Files changed (1) hide show
  1. pie.py +0 -12
pie.py DELETED
@@ -1,12 +0,0 @@
1
-
2
- import matplotlib.pyplot as plt
3
- # 数据准备
4
- labels = 'Female', 'Eunuch', 'Male'
5
- sizes = [50, 30, 20]
6
- colors = ['#ff7675', '#74b9ff', '#55efc4']
7
- # 绘制饼图
8
- plt.pie(sizes, labels=labels, colors=colors, autopct='%1.1f%%', startangle=90)
9
- # 添加标题
10
- plt.title('Pie Chart - Gender Distribution')
11
- # 显示图形
12
- plt.show()