Skip to content

Instantly share code, notes, and snippets.

@ceteri
Created May 31, 2020 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceteri/9ac549cab849fc2a8df336e590c6ef72 to your computer and use it in GitHub Desktop.
Save ceteri/9ac549cab849fc2a8df336e590c6ef72 to your computer and use it in GitHub Desktop.
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