ContextLab / hypertools

A Python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1.83k stars 160 forks source link

support kernel density plots in 2d and 3d #108

Open jeremymanning opened 7 years ago

jeremymanning commented 7 years ago

write a function for creating kernel density plots, along the lines of seaborn's kdeplot: http://seaborn.pydata.org/generated/seaborn.kdeplot.html

in 3d, each group's distribution would be plotted as a series of concentric 3d shapes

to figure out: what would be a good syntax for using this mode?

jeremymanning commented 7 years ago

example plot: seaborn-kdeplot-9

(from http://seaborn.pydata.org/_images/seaborn-kdeplot-9.png)

andrewheusser commented 7 years ago

i think these may look weird considering the matplotlib 3D plotting issues. wondering whether its worth considering switching to mayavi under the hood / how much work that would actually take:

http://stackoverflow.com/questions/25286811/how-to-plot-a-3d-density-map-in-python-with-matplotlib

jeremymanning commented 7 years ago

It may not be too hard as long as we're willing to stick with the simplified styling and not have axis labels...

jeremymanning commented 7 years ago

We could also implement things directly with OpenGL, e.g. using pyopengl

jeremymanning commented 7 years ago

Or we could switch to plotly...