has2k1 / plotnine

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

stat_ellipse and other stat functions #92

Closed JaysonChao closed 6 years ago

JaysonChao commented 6 years ago

the stat_ellipse() function in ggplot2 draw confidence interval ellipse according to mapping aesthetics after geom_point(). Any possibility including this function in the next version of plotnine? And BTW: 'ggplot(df, aes(x=weight, color=sex, fill=sex)) + geom_histogram(aes(y=..density..),alpha=0.5, position="identity")+ geom_density(alpha=.2)' combination of density and histogram is possible in ggplot2, how to do it here in plotnine?

JaysonChao commented 6 years ago

the stat_ellipse() is now available in the 0.3 version and it works quite well. Thanks!