from vizent import vizent_plot
import pandas as pd
import cartopy.crs as ccrs
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 = [25]*len(x)
extent = [-6, 2, 49.9, 56]
fig = vizent_plot(x_values=x,
y_values=y,
colour_values=cases,
shape_values=accel,
size_values=size,
shape_label="7-day diff",
color_label="Daily cases",
use_cartopy=True,
extent=extent,
label_fontsize=6)
title = fig.suptitle('COVID-19 daily case count and difference from 7-day average\nEnglish regions, 5th January 2021', y=0.96)