Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add bokeh statistics operations, elements and plots #1985
This PR will replace the seaborn interface with a set of statistical elements, operations and plots which will all work together. For now it's very much a WIP since there's still some groundwork to be laid, but it's a good start with the basic functionality in place for Distribution and Bivariate elements and corresponding operations.
Demo notebook can be seen here
Just to say that with a few tweaks discussed with @philippjfr (namely using the
Using the compositor in the background and writing things in terms of operations is very clean and I find it to be a very powerful approach. It is along the lines of the 'plotting macro' idea we had before and this is an initial step in that direction (using the compositor to do that job for now).
Other than seeing those tweaks and the other minor comments above addressed, I would be happy to merge once some unit tests are added (doesn't have to be extensive!) and the corresponding element notebooks are added. I expect coverage would go up without new unit tests just because this would delete that old seaborn/pandas interface code!
@jlstevens This is now ready for review. I've added element notebooks for both new Elements along with a new demo, added docstrings to the operations and added unit tests for transferring options, for the statistics elements themselves and for the compositing of the statistics elements.
Should get a very healthy boost in coverage overall.