Skip to content

Instantly share code, notes, and snippets.

@ceteri
Created May 31, 2020 08:05
Show Gist options
  • Save ceteri/f66b97754d2d9d020fdebfdfb19e6b26 to your computer and use it in GitHub Desktop.
Save ceteri/f66b97754d2d9d020fdebfdfb19e6b26 to your computer and use it in GitHub Desktop.
boroughs = gpd.read_file(gplt.datasets.get_path("nyc_boroughs"))
collisions = gpd.read_file(gplt.datasets.get_path("nyc_collision_factors"))
ax = gplt.polyplot(boroughs, projection=gcrs.AlbersEqualArea())
gplt.kdeplot(collisions, cmap="Reds", shade=True, clip=boroughs, ax=ax)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment