Skip to content

Instantly share code, notes, and snippets.

@ceteri
Created May 31, 2020
Embed
What would you like to do?
proj = gplt.crs.AlbersEqualArea(
central_longitude=-98,
central_latitude=39.5
)
ax = gplt.voronoi(
continental_usa_cities,
hue="ELEV_IN_FT",
clip=contiguous_usa,
projection=proj,
cmap="Reds",
legend=True,
edgecolor="white",
linewidth=0.01
)
gplt.polyplot(
contiguous_usa,
ax=ax,
extent=contiguous_usa.total_bounds,
edgecolor="black",
linewidth=1,
zorder=1
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment