python制作热力图_python实现输入的数据在地图上生成热力图效果

我就废话不多说了,直接贴代码,注意要先安装folium

#-*-coding:utf8-*-

#输入data生成热力图html,借助了leaflet,没网不能用

import os

import folium

data=[[ 39.90403 , 116.407526 , 23014.59 ] , [ 39.084158 , 117.200983 , 16538.19 ] , [ 38.042309 , 114.514862 , 5440.6 ] , [ 37.87059 , 112.548879 , 2735.34 ] , [ 40.842585 , 111.74918 , 3090.52 ] , [ 41.805698 , 123.431474 , 7272.31 ] , [ 38.914003 , 121.614682 , 7731.64 ] , [ 43.817071 , 125.323544 , 5530.03 ] , [ 45.803775 , 126.534967 , 5751.21 ] , [ 31.230416 , 121.473701 , 25123.45 ] , [ 32.060255 , 118.796877 , 9720.77 ] , [ 30.274084 , 120.15507 , 10050.21 ] , [ 29.874556 , 121.550357 , 8003.61 ] , [ 31.820586 , 117.227239 , 5660.27 ] , [ 26.074507 , 119.296494 , 5618.08 ] , [ 24.479833 , 118.089425 , 3466.03 ] , [ 28.682892 , 115.858197 , 4000.01 ] , [ 36.651216 , 117.119999 , 6100.23 ] , [ 36.067082 , 120.382639 , 9300.07 ] , [ 34.746599 , 113.625368 , 7311.52 ] , [ 30.593098 , 114.305392 , 10905.6

你可能感兴趣的:(python制作热力图)