normal_corner
This code produces a corner plot for analytical multi-dimensional Gaussian distribution, using covariance matrix and mean matrix. It also allows us to plot another distribution, with reduced dimensionality, on top. I.e. a distribution for a case where we fixed one variable.
See demo.py for examples.
Installation
Option 1:
pip install normal_corner
Option 2:
python setup.py installin cloned directory
Documentation
The main component is function normal_corner inside a normal_corner package. Below is a description of inputs and outputs.
Output:
- Matplotlib figure object with a corner plot
Main input:
covm: covariance matrix, numpy array, NxN.mean: mean matrix, numpy array, 1xN.varlabels: labels for plotting, 1xN, list of str in LaTex format, between ($$).
Input for a second distribution on top:
fixedvarindex: index of variable that we do not use (fix), int, starting from 0. If not None, covm2 and mean2 must not be None.fixedvarvalue: value of fixed variable, float. Leave None not to plot fixed value.newcovandnewmean: new covariance and mean matrices, same format, as above.
Optional input:
scale_factor: scale factor for plotting area, float, in sigma.diagnostic: an option to print out some diagnostic messages, bool.color: color for a main Normal distribution, str.color2: color for a secondary Normal distribution, with reduced dimensionality, str.
Metadata
Release files for normal-corner 0.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 |
|---|---|---|---|---|
| normal_corner-0.0.1.tar.gz | 3.7 kB | Without provenance | Details for normal_corner-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| normal_corner-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for normal_corner-0.0.1-py3-none-any.whl |
Total release size: 8.8 kB
Release files / normal_corner-0.0.1.tar.gz
| Download URL | normal_corner-0.0.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e2b0bc5e09b60cb858f475e88bd32c646aa09037884bc568b49cd1ccc302b75
|
|
BLAKE2b-256 checksum How to use checksums |
f86dd72e5e6fc86a9053c0227f131b36f8da7092550724fee5b98ebc0593ae19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4
|
Release files / normal_corner-0.0.1-py3-none-any.whl
| Download URL | normal_corner-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
931c412b0d107ceaeaa0f6448a1a1369af5edca3ba180ad8083747f59a361924
|
|
BLAKE2b-256 checksum How to use checksums |
27051564433a38d63c70ad6d8a25f814680e59523692e479e6b25bc583882635
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4
|
Security for normal-corner 0.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.