12345678910111213141516171819202122232425262728293031323334 |
- # import matplotlib.pyplot as plt
- #
- # # 数据准备
- # categories = [
- # '湿地', '耕地', '园地', '林地', '草地',
- # '商业服务业用地', '工矿用地', '住宅用地',
- # '公共管理与公共服务用地', '特殊用地', '交通运输用地',
- # '水域及水利设施用地', '其他土地'
- # ]
- # areas = [
- # 8.5663, 1137.5369, 147.001, 1450.9153, 17.3107,
- # 6.6372, 262.8366, 402.1576,
- # 44.1084, 9.3454, 191.0833,
- # 405.9483, 34.8844
- # ]
- # percentages = [
- # 0.208, 27.6213, 3.5694, 35.2307, 0.4203,
- # 0.1612, 6.3821, 9.7651,
- # 1.071, 0.2269, 4.6398,
- # 9.8571, 1.8211
- # ]
- #
- # # 创建扇形图
- # plt.figure(figsize=(10, 7))
- # plt.pie(areas, labels=categories, autopct='%1.1f%%', startangle=140)
- # plt.title('项目区土地利用现状')
- # plt.show()
- import pandas as pd
- import numpy as np
- # 简单的测试来验证安装
- print(pd.__version__)
- print(np.__version__)
|