has2k1 / plotnine

A Grammar of Graphics for Python
https://plotnine.org
MIT License
3.89k stars 209 forks source link

Add bounds argument to `geom_density` #796

Closed MartinBernstorff closed 2 weeks ago

MartinBernstorff commented 1 month ago

Thanks a ton for the work on an excellent package! 🍾

When using geom_density, I get "drooping" edges because the geom assumes values outside the range of data are 0. More detail, as well as the PR to ggplot which fixed it with an argument, here: https://github.com/tidyverse/ggplot2/pull/4013

MartinBernstorff commented 1 month ago

@HLasse You might find this interesting.