当前位置:网站首页>Pyechats 1.19 generate a web version of Baidu map
Pyechats 1.19 generate a web version of Baidu map
2022-07-02 05:02:00 【Vertira】
Code up
from pyecharts import options as opts
from pyecharts.charts import BMap
from pyecharts.faker import Faker
c = (
BMap()
.add_schema(baidu_ak="FAKE_AK", center=[120.13066322374, 30.240018034923])
.add(
"bmap",
[list(z) for z in zip(Faker.provinces, Faker.values())],
label_opts=opts.LabelOpts(formatter="{b}"),
)
.set_global_opts(title_opts=opts.TitleOpts(title="BMap- Basic example "))
.render("bmap_base.html")
)
Generate :bmap_base.html
use Google or IE Browser open
边栏推荐
- Oracle stored procedure and job task setting
- leetcode存在重复元素go实现
- 正大美欧4的主账户关注什么数据?
- 案例分享|智慧化的西部机场
- 農業生態領域智能機器人的應用
- Steam教育的实际问题解决能力
- [bus interface] Axi interface
- Change deepin to Alibaba image source
- Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing
- Mathematical knowledge -- understanding and examples of fast power
猜你喜欢
随机推荐
奠定少儿编程成为基础学科的原理
Typescript function details
Embedded-c language-8-character pointer array / large program implementation
LM09丨费雪逆变换反转网格策略
2022阿里巴巴全球数学竞赛 第4题 虎虎生威(盲盒问题、集卡问题)解决思路
idea自動導包和自動删包設置
在{{}}中拼接字符
2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas
函数中使用sizeof(arr) / sizeof(arr[0])求数组长度不正确的原因
Leetcode merge sort linked list
Solution: the agent throws an exception error
AcrelEMS高速公路微电网能效管理平台与智能照明解决方案智慧点亮隧道
National all Chinese Automatic Test Software apifox
Idea automatic package import and automatic package deletion settings
C - derived classes and constructors
List of common bugs in software testing
数学知识——快速幂的理解及例题
Video cover image setting, put cover images into multiple videos in the simplest way
js面试收藏试题1
Summary of database problems