使用matplotlib.pyplot,pyecharts和seaborn画过的图
from pyecharts import options as opts
from pyecharts.charts import Map
data = [['青岛市', 80],['临沂市', 49],['济宁市', 260],['日照市', 16],['泰安市', 35]]
def map_yunnan() -> Map:
c = (
Map()
.add("确诊病例", data, "山东",zoom = 1)
.set_global_opts(
title_opts=opts.TitleOpts(title="山东疫情地图"),
visualmap_opts=opts.VisualMapOpts(max_=31,is_piecewise=True,
pieces=[{"max": 0, "min": 0, "label":
共有 0 条评论