Better violin plots for common scenarios.
This package allows for violin plots of any and all of:
Packages like matplotlib
or seaborn
are limited in that they
do not have all of these options.
After cloning, make sure the requirements are installed with
pip install -r requirements.txt
then do the actual install of this package by performing
python setup.py install
and run the tests
pytest
Please report any issues here.
To contribute to the development, there are a few more requirements
found in environment.yml
. To install, the environment, follow the directions
on creating and environment, with
conda env create -f environment.yml
Followed by the installation instructions above.
Import the package or a single routine and use it with the appropriate kinds of data (either a scipy
-like distribution or samples of points).
from bvp import analytic_violin
from scipy.stats import norm
# Five normal distributions
distributions = [norm() for _ in range(5)]
fig, ax = analytic_violin(distributions)