diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-16 18:56:14 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-16 23:14:59 +0000 |
| commit | b2599bac8180cfa70f0123d4135058ccb00335d4 (patch) | |
| tree | 3d8d8987080f9703b58f8a8e303d3c8fa27ef3e1 | |
| parent | 1a76baef938f599ce8c5913baa76aa02f173ef92 (diff) | |
science/py-corner: New port: Make some beautiful corner plots
| -rw-r--r-- | science/Makefile | 1 | ||||
| -rw-r--r-- | science/py-corner/Makefile | 31 | ||||
| -rw-r--r-- | science/py-corner/distinfo | 3 | ||||
| -rw-r--r-- | science/py-corner/pkg-descr | 11 |
4 files changed, 46 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index 240f468caabb..9141575c630d 100644 --- a/science/Makefile +++ b/science/Makefile @@ -315,6 +315,7 @@ SUBDIR += py-cirq-pasqal SUBDIR += py-cirq-web SUBDIR += py-coards + SUBDIR += py-corner SUBDIR += py-dftbplus SUBDIR += py-dftd4 SUBDIR += py-dimod diff --git a/science/py-corner/Makefile b/science/py-corner/Makefile new file mode 100644 index 000000000000..fc69061b3a5b --- /dev/null +++ b/science/py-corner/Makefile @@ -0,0 +1,31 @@ +PORTNAME= corner +DISTVERSION= 2.2.3 +CATEGORIES= science graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Make some beautiful corner plots +WWW= https://github.com/dfm/corner.py + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=2.1:math/py-matplotlib@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arviz>=0.9:math/py-arviz@${PY_FLAVOR} \ + nox>0:devel/nox \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests + +NO_ARCH= yes + +# tests as of 2.2.3: 12 failed, 49 passed in 174.75s (0:02:54) + +.include <bsd.port.mk> diff --git a/science/py-corner/distinfo b/science/py-corner/distinfo new file mode 100644 index 000000000000..8e19b029a15f --- /dev/null +++ b/science/py-corner/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1760469512 +SHA256 (corner-2.2.3.tar.gz) = 471b7b63395d8f1dee176bb779348ade38d56abd23404a48802a593607745e1c +SIZE (corner-2.2.3.tar.gz) = 5932840 diff --git a/science/py-corner/pkg-descr b/science/py-corner/pkg-descr new file mode 100644 index 000000000000..3ba0d780bc59 --- /dev/null +++ b/science/py-corner/pkg-descr @@ -0,0 +1,11 @@ +py-corner is a Python library designed to create "corner plots" (also known as +triangle plots or scatterplot matrices) for visualizing high-dimensional data. + +These plots are particularly useful in scientific fields such as astrophysics, +cosmology, and statistics for displaying the marginalized distributions of +parameters from a multi-dimensional sample (e.g., from Markov Chain Monte Carlo +simulations). + +The library generates 1D histograms for individual parameters and 2D histograms +(or scatter plots) for all pairs of parameters, providing a comprehensive +overview of their distributions and correlations. |
