test.py 932 B

12345678910111213141516171819202122232425262728293031323334
  1. # import matplotlib.pyplot as plt
  2. #
  3. # # 数据准备
  4. # categories = [
  5. # '湿地', '耕地', '园地', '林地', '草地',
  6. # '商业服务业用地', '工矿用地', '住宅用地',
  7. # '公共管理与公共服务用地', '特殊用地', '交通运输用地',
  8. # '水域及水利设施用地', '其他土地'
  9. # ]
  10. # areas = [
  11. # 8.5663, 1137.5369, 147.001, 1450.9153, 17.3107,
  12. # 6.6372, 262.8366, 402.1576,
  13. # 44.1084, 9.3454, 191.0833,
  14. # 405.9483, 34.8844
  15. # ]
  16. # percentages = [
  17. # 0.208, 27.6213, 3.5694, 35.2307, 0.4203,
  18. # 0.1612, 6.3821, 9.7651,
  19. # 1.071, 0.2269, 4.6398,
  20. # 9.8571, 1.8211
  21. # ]
  22. #
  23. # # 创建扇形图
  24. # plt.figure(figsize=(10, 7))
  25. # plt.pie(areas, labels=categories, autopct='%1.1f%%', startangle=140)
  26. # plt.title('项目区土地利用现状')
  27. # plt.show()
  28. import pandas as pd
  29. import numpy as np
  30. # 简单的测试来验证安装
  31. print(pd.__version__)
  32. print(np.__version__)