当前位置:网站首页>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

边栏推荐
- Ansible installation and use
- go实现leetcode旋转数组
- 培养中小学生对教育机器人的热爱之心
- js面试收藏试题1
- 画波形图_数字IC
- Preparation for writing SAP ui5 applications using typescript
- How to write a client-side technical solution
- Online incremental migration of DM database
- Learn BeanShell before you dare to say you know JMeter
- Case sharing | intelligent Western Airport
猜你喜欢

Online incremental migration of DM database

农业生态领域智能机器人的应用

How to configure PostgreSQL 12.9 to allow remote connections

Lay the foundation for children's programming to become a basic discipline

Application of intelligent robot in agricultural ecology

10 minute quick start UI automation ----- puppeter

Unity particle Foundation

2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas

ansible安装与使用

List of common bugs in software testing
随机推荐
Win10 disk management compressed volume cannot be started
[quick view opencv] familiar with CV matrix operation with image splicing examples (3)
Promise all()
Several methods of capturing packets under CS framework
Feign realizes file uploading and downloading
Getting started with pytest ----- confitest Application of PY
Pit encountered in win11 pytorch GPU installation
奠定少儿编程成为基础学科的原理
画波形图_数字IC
洛谷入门3【循环结构】题单题解
Mouse events in JS
Set the default style of scroll bar Google browser
Use of typescript classes
VMware installation win10 reports an error: operating system not found
Preparation for writing SAP ui5 applications using typescript
How to configure PostgreSQL 12.9 to allow remote connections
Pyflink writes MySQL examples with JDBC
oracle 存储过程与job任务设置
Interview question: do you know the difference between deep copy and shallow copy? What is a reference copy?
Summary of MySQL key challenges (2)