File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ # Color-Map-Generator
2+ ** 用来生成不同颜色组合的彩色地图**
3+
4+ ## 数据来源
5+ (1)颜色组合参考Matplotlib:
6+ https://matplotlib.org/3.3.0/gallery/color/colormap_reference.html#sphx-glr-gallery-color-colormap-reference-py
7+
8+ (2)底图数据来自中科院全球国家行政边界数据:
9+ https://www.resdc.cn/Default.aspx
10+ 选择【全球100万基础地理数据】分类下面的【全球国家行政边界数据】下载解压
11+
12+ ## 核心Python包
13+ (1)folium == 0.16.0
14+
15+ (2)geopandas == 0.14.3
16+
17+ (3)matplotlib == 3.8.4
18+
19+ ## 使用方法
20+ (1)选择底图.shp文件
21+ ![ image] ( 使用方法(1).png )
22+
23+ (2)选择颜色组合
24+ ![ image] ( 使用方法(2).png )
25+
26+ (3)点击“Generate”按钮,选择结果文件的目标文件夹
27+ ![ image] ( 使用方法(3).png )
28+
29+ (4)生成对应的地图html文件(map.html)
30+ ![ image] ( 使用方法(4).png )
31+
32+ ## 注意事项
33+ (1)请使用data文件夹下的“世界国家.shp”作为底图数据
34+
35+ (2)因个人实验需要,底图设置为仅显示中国及周边邻国,如需更改请修改“main.py”中的代码
36+
37+ (3)“color.py”用于为不同国家分配颜色,“GUI.py”用于显示用户界面
You can’t perform that action at this time.
0 commit comments