Skip to content

Instantly share code, notes, and snippets.

View ceteri's full-sized avatar

paco xander nathan ceteri

View GitHub Profile
ax = gplt.polyplot(contiguous_usa, projection=gcrs.AlbersEqualArea())
gplt.choropleth(
contiguous_usa,
hue="population",
edgecolor="white",
linewidth=1,
cmap="Greens",
legend=True,
scheme="FisherJenks",
legend_labels=[
ax = gplt.polyplot(
contiguous_usa,
edgecolor="white",
facecolor="lightgray",
figsize=(12, 8),
projection=gcrs.AlbersEqualArea()
)
gplt.pointplot(
continental_usa_cities,
ax = gplt.polyplot(contiguous_usa, projection=gcrs.AlbersEqualArea())
gplt.pointplot(
continental_usa_cities,
ax=ax,
hue="ELEV_IN_FT",
legend=True
)
ax = gplt.polyplot(contiguous_usa, projection=gcrs.AlbersEqualArea())
gplt.pointplot(continental_usa_cities, ax=ax)
ax = gplt.polyplot(contiguous_usa)
gplt.pointplot(continental_usa_cities, ax=ax)
continental_usa_cities = usa_cities.query('STATE not in ["HI", "AK", "PR"]')
gplt.pointplot(continental_usa_cities)
path = gplt.datasets.get_path("usa_cities")
usa_cities = gpd.read_file(path)
gplt.polyplot(contiguous_usa)
path = gplt.datasets.get_path("contiguous_usa")
contiguous_usa = gpd.read_file(path)
pop_states[pop_states.NAME=="California"].plot()