python geodata visualize

Solutions on MaxInterview for python geodata visualize by the best coders in the world

showing results for - "python geodata visualize"
Michele
23 May 2016
1from pyecharts import Geo
2data = [
3("海门", 9),("鄂尔多斯", 12),("招远", 12),("舟山", 12),("齐齐哈尔", 14),("盐城", 15),
4("赤峰", 16),("青岛", 18),("乳山", 18),("金昌", 19),("泉州", 21),("莱西", 21),
5("日照", 21),("胶南", 22),("南通", 23),("拉萨", 24),("云浮", 24),("梅州", 25)]
6
7attr, value = geo.cast(data)
8geo = Geo("全国主要城市空气质量热力图", "data from pm2.5", title_color="#fff", title_pos="center", width=1200, height=600, background_color='#404a59')
9
10geo.add("空气质量热力图", attr, value, visual_range=[0, 25], type='heatmap',visual_text_color="#fff", symbol_size=15, is_visualmap=True, is_roam=False)
11geo.render("全国主要城市空气质量热力图.html")#生成html文件
12geo