Background image example#
[1]:
from vizent import vizent_plot
import pandas as pd
data = pd.read_csv("sample-data/england-covid-example.csv")
x = data['lon'].tolist()
y = data['lat'].tolist()
cases = data['Cases'].tolist()
accel = data['Diff7Day'].tolist()
size = [30]*len(x)
fig = vizent_plot(x, y, cases, accel, size, shape_label="7-day difference",
color_label="Daily cases",
image_file="../vizent/images/england_map.png",
extent=[-6, 2, 49.9, 56])
title= fig.suptitle("COVID19 daily case count and 7 day difference. English regions, 5th January 2021", y=0.94)
Map © OpenStreetMap contributors