0

I've got some data that has cyclic end points (the x-axis is longitude and hence 0 and 360 are the same point), but as far as I can tell seaborn.kdeplot doesn't have an option to specify cyclic end points.

What would be the easiest away to do univariate kernel density estimation in python/seaborn whilst accounting for the cyclic end points?

Damien Irving
  • 337
  • 4
  • 10

1 Answers1

0

You can calculate the KDE using other libraries, and then just plot them in seaborn.

You can use the scipy KDE. It has an option to define cyclic boundary (link)

If you want more sophisticated KDE kernels (SciPy has only gaussian), you can use the scikit-learn KDE with a sphere distance metric (link).

Elad Joseph
  • 2,998
  • 26
  • 41