Skip to content

Commit

Permalink
Merge pull request #4 from nicholas-ys-tan/issue3
Browse files Browse the repository at this point in the history
COMPAT: shade kwarg in seaborn deprecated in favour of fill
  • Loading branch information
nicholas-ys-tan authored Jun 8, 2024
2 parents 671581b + 2ce1c93 commit cf17e36
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/plot_references/plot_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ geometry.
:context: close-figs

ax = gplt.polyplot(boroughs, projection=gcrs.AlbersEqualArea(), zorder=1)
gplt.kdeplot(collisions, cmap='Reds', shade=True, clip=boroughs, ax=ax)
gplt.kdeplot(collisions, cmap='Reds', fill=True, clip=boroughs, ax=ax)

Additional keyword arguments that are not part of the ``geoplot`` API are passed to
`the underlying seaborn.kdeplot instance <https://seaborn.pydata.org/generated/seaborn.kdeplot.html#seaborn.kdeplot>`_.
Expand All @@ -266,7 +266,7 @@ lowest (basal) layer of the kernel density estimate.
:context: close-figs

ax = gplt.polyplot(boroughs, projection=gcrs.AlbersEqualArea(), zorder=1)
gplt.kdeplot(collisions, cmap='Reds', shade=True, thresh=0.05,
gplt.kdeplot(collisions, cmap='Reds', fill=True, thresh=0.05,
clip=boroughs, ax=ax)

Cartogram
Expand Down
22 changes: 11 additions & 11 deletions docs/quickstart/quickstart.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/plot_boston_airbnb_kde.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

ax = gplt.kdeplot(
boston_airbnb_listings, cmap='viridis', projection=gcrs.WebMercator(), figsize=(12, 12),
shade=True
fill=True
)
gplt.pointplot(boston_airbnb_listings, s=1, color='black', ax=ax)
gplt.webmap(boston_airbnb_listings, ax=ax)
Expand Down
4 changes: 2 additions & 2 deletions examples/plot_nyc_collision_factors.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
cmap='Reds',
projection=proj,
shade=True, thresh=0.05,
fill=True, thresh=0.05,
clip=nyc_boroughs.geometry,
ax=ax1
)
Expand All @@ -41,7 +41,7 @@
],
cmap='Reds',
projection=proj,
shade=True, thresh=0.05,
fill=True, thresh=0.05,
clip=nyc_boroughs.geometry,
ax=ax2
)
Expand Down

0 comments on commit cf17e36

Please sign in to comment.