cmplot.py - Cloudy Mountain Plot in python
An informative RDI categorical distribution plot inspired by Violin, Bean and Pirate Plots.
(RDI = Raw data + Descriptive statistics + Inferential statistics)
-
Like Violin plots, it shows smoothed kernel density curves, revealing information which would be hidden in boxplots, for example presence of multiple "peaks" ("modes") in the distribution "mountain".
-
Like Bean plots, it shows the raw data, drawn as a cloud of points. By default all data points are shown but you can optionally control this and limit the display to a subset of the data.
-
Like Pirate plots, it marks confidence intervals (either from Student's T or as Bayesian Highest Density Intervals or as interquantile ranges) for the probable position of the true population mean.
Since by default it does not symmetrically mirror the density curves, it allows immediate comparisions of distributions side-by-side.
Documentation
Download and installation
cmplot is pure python code. It has no platform-specific dependencies and should thus work on all platforms. It requires the packages plotly numpy scipy pandas. The latest version of cmplot can be installed by typing either:
pip3 install cmplot
(from Python Package Index)
or:
pip3 install git+git://github.com/g-insana/cmplot.py.git
(from GitHub).
There is also a version in Julia.
Quickstart
>>> import plotly.graph_objects as go
>>> from cmplot import cmplot
#call the cmplot directly inside a plotly Figure function as:
>>> go.Figure(*cmplot(mydataframe,xcol="xsymbol"))
#alternatively get traces and layout as separate variables, so that you can modify them or combine with others before passing them to Figure() function:
>>> (traces,layout)=(cmplot(mydataframe,xcol="xsymbol"))
#[...] do something with traces/layout
>>> go.Figure(traces,layout) #plot it
Copyright
cmplot is licensed under the GNU Affero General Public License.
(c) Copyright Giuseppe Insana, 2019-
Metadata
Release files for cmplot 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cmplot-1.0.1.tar.gz | 11.0 kB | Without provenance | Details for cmplot-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cmplot-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for cmplot-1.0.1-py3-none-any.whl |
Total release size: 33.1 kB
Release files / cmplot-1.0.1.tar.gz
| Download URL | cmplot-1.0.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9338206e292306274773b4cc00990310f746d21526e0465711746abac870ab50
|
|
BLAKE2b-256 checksum How to use checksums |
229589ae40c065ea66525963a20e870b5a473eca1465385ec9f4dfdf76c5e7b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
|
Release files / cmplot-1.0.1-py3-none-any.whl
| Download URL | cmplot-1.0.1-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88276a883bbba1179ecab18c34bb6a96537981cc9c8c64ce85113d49c4b247a9
|
|
BLAKE2b-256 checksum How to use checksums |
edabd8976a9b002f54c50083fbd02f1bd2d2b427eeb182695b4dd9fe705260a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
|
Security for cmplot 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.