使用Python中的纬度、经度数据在世界地图上绘制热图

问题描述 投票:0回答:1

我有纬度、经度数据和对应的计数变量,如下所示:

lat      long    count
23.7000  90.3750 45
23.7231  90.4086 1000

我想通过识别地图中的纬度和经度来可视化虚拟世界地图上的计数数据(作为热图)。

我读到底图包可以做到这一点,但它不适用于 python 3.5。

我找不到任何可以帮助我做到这一点的相关材料

python-3.x plot latitude-longitude heatmap
1个回答
0
投票

您可以使用 matplotlib 的颜色条尝试以下操作

import matplotlib.pyplot as plt
plt.scatter(lat, long, c=count)
plt.colorbar()
plt.show()
© www.soinside.com 2019 - 2024. All rights reserved.