Skip to content

Statistical Summary Diagrams (Taylor and Target Diagrams) in python

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE.txt
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

mommebutenschoen/StatisticalDiagrams

Repository files navigation

StatisticalDiagrams

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()

About

Statistical Summary Diagrams (Taylor and Target Diagrams) in python

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE.txt
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages