Delete pie.py
Browse files
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|