Statistical Summary Diagrams.
Project description
Python package for drawing statistical summary diagrams such as Taylor or Target Diagrams.
Installation:
After downloading the source from github install via pip, descending into the top-level of the source tree and launching:
pip install .
or to install in developers mode:
pip install -e .
Or install the latest release from PyPI:
pip install StatisticalDiagrams
Documentation
Documentation of this package can be found on readthedocs.
Simple Example:
from StatsDiagram import *
from numpy.random import randn
from matplotlib.pyplot import show,subplot
from scipy.stats import pearsonr
a=randn(10)
b=randn(10)
ref=randn(10)
subplot(221)
TD=TargetStatistics(a,ref)
TD(b,ref)
subplot(222)
TD=TaylorStatistics(a,ref)
TD(b,ref)
std1=a.std()
std2=b.std()
refstd=ref.std()
R1,p=pearsonr(a,ref)
E1=(a.mean()-ref.mean())/refstd
G1=std1/refstd
R2,p=pearsonr(b,ref)
E2=(b.mean()-ref.mean())/refstd
G2=std2/refstd
subplot(223)
TayD=TargetDiagram(G1,E1,R1,)
TayD(G2,E2,R2,)
subplot(224)
TarD=TaylorDiagram(G1,E1,R1,)
TarD(G2,E2,R2,)
show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
StatisticalDiagrams-20.5.tar.gz
(26.1 kB
view details)
Built Distribution
File details
Details for the file StatisticalDiagrams-20.5.tar.gz
.
File metadata
- Download URL: StatisticalDiagrams-20.5.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf19c6362f6c5f7e078d7d1567e5cd996f453f8fb805c220c221f63c5262e2c8 |
|
MD5 | adafd498c33614a19896f6afd6654f34 |
|
BLAKE2b-256 | 32bf78bc91a169953b76039580abd1a3fec179ee18d9355af07e577be511f71e |
File details
Details for the file StatisticalDiagrams-20.5-py2.py3-none-any.whl
.
File metadata
- Download URL: StatisticalDiagrams-20.5-py2.py3-none-any.whl
- Upload date:
- Size: 38.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a759419b358c92d02365e3f82dceb632253938d98d4ba00b0073e95d394d1a |
|
MD5 | 8aa17c7064454dbea3872093ce5920dd |
|
BLAKE2b-256 | b898eed21cec483045bbf82a11d5de7584dcbe68a23276e75a77d1f94a03aad0 |