Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python geodata visualize

from pyecharts import Geo
data = [
("海门", 9),("鄂尔多斯", 12),("招远", 12),("舟山", 12),("齐齐哈尔", 14),("盐城", 15),
("赤峰", 16),("青岛", 18),("乳山", 18),("金昌", 19),("泉州", 21),("莱西", 21),
("日照", 21),("胶南", 22),("南通", 23),("拉萨", 24),("云浮", 24),("梅州", 25)]

attr, value = geo.cast(data)
geo = Geo("全国主要城市空气质量热力图", "data from pm2.5", title_color="#fff", title_pos="center", width=1200, height=600, background_color='#404a59')

geo.add("空气质量热力图", attr, value, visual_range=[0, 25], type='heatmap',visual_text_color="#fff", symbol_size=15, is_visualmap=True, is_roam=False)
geo.render("全国主要城市空气质量热力图.html")#生成html文件
geo
Comment

python geodata visualize

from pyecharts import Geo
data = [
("海门", 9),("鄂尔多斯", 12),("招远", 12),("舟山", 12),("齐齐哈尔", 14),("盐城", 15),
("赤峰", 16),("青岛", 18),("乳山", 18),("金昌", 19),("泉州", 21),("莱西", 21),
("日照", 21),("胶南", 22),("南通", 23),("拉萨", 24),("云浮", 24),("梅州", 25)]

attr, value = geo.cast(data)
geo = Geo("全国主要城市空气质量热力图", "data from pm2.5", title_color="#fff", title_pos="center", width=1200, height=600, background_color='#404a59')

geo.add("空气质量热力图", attr, value, visual_range=[0, 25], type='heatmap',visual_text_color="#fff", symbol_size=15, is_visualmap=True, is_roam=False)
geo.render("全国主要城市空气质量热力图.html")#生成html文件
geo
Comment

PREVIOUS NEXT
Code Example
Python :: django file field from base64 
Python :: Backend not found Request Method: GET Request URL: http://127.0.0.1:8000/oauth/login/google-oauth2/ Raised by: social_django.views.au 
Python :: python break out of function 
Python :: pandas backward fill after upsampling 
Python :: how to insert an array as a parameter in python 
Python :: assertionerror and buffererror are derived from which built-in python class 
Python :: numpy add to same index multiple times 
Python :: REMINER VIA MAIL 
Python :: python program to remove comment lines 
Python :: how to do a python loop 
Python :: string to 2d array python 
Python :: python if block 
Python :: how to get unknown wifi password using python 
Python :: pydantic model and ORM model 
Python :: python write multiline string to file 
Python :: all python 
Python :: flask env variable 
Python :: numpy retrieve 5 highest value index 
Python :: odoo get inherited models 
Python :: from django.urls import reverse 
Python :: pandas merge keep one of column copy 
Python :: pytrend 
Python :: print(((x//y)+1)*z) means in python 
Python :: how to append the items in list 
Python :: eastcoders: django-meta-class 
Python :: beautifulsoup documentation 
Python :: run python script in synology sample 
Python :: split column in exact spot python 
Python :: how to change a kivy button text in kivy lang from python file 
Python :: odoo wizard current user login 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =