Skip to main content

Cloudy Mountain Plot

Project description

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.

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.

Documentation

Check the online documentation and jupyter notebook for usage and examples at the GitHub page.

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-

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmplot-0.9.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmplot-0.9.2-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file cmplot-0.9.2.tar.gz.

File metadata

  • Download URL: cmplot-0.9.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for cmplot-0.9.2.tar.gz
Algorithm Hash digest
SHA256 d90adb4e9be1a37f9d40a69f79ce7c51dff79e3116e8a129031ec6e4079ab42b
MD5 54596e05fddedc4eecee248f986ede7b
BLAKE2b-256 ddf6ba0b4401b911a3a087846ea8c5273509adbae3f22fc697255ffefad0076e

See more details on using hashes here.

File details

Details for the file cmplot-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: cmplot-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for cmplot-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aecbb599df2d5da35cead058b16f2af4fa33346979413a0575096faa717d3427
MD5 a8c6ec01168bf122635d923420b6735b
BLAKE2b-256 492dbe307d2aaef905a9a88af762f887dd51170c2534c1283ed6dc6abeaaf38f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page