corner 2.2.2__tar.gz → 2.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- corner-2.2.3/.copier-answers.yml +28 -0
- corner-2.2.3/.github/dependabot.yml +6 -0
- {corner-2.2.2 → corner-2.2.3}/.github/workflows/tests.yml +10 -13
- {corner-2.2.2 → corner-2.2.3}/.pre-commit-config.yaml +4 -4
- {corner-2.2.2/src/corner.egg-info → corner-2.2.3}/PKG-INFO +19 -9
- corner-2.2.3/corner.png +0 -0
- corner-2.2.3/demo.py +51 -0
- corner-2.2.3/docs/.gitignore +5 -0
- corner-2.2.3/docs/Makefile +231 -0
- corner-2.2.3/docs/_static/corner.png +0 -0
- corner-2.2.3/docs/api.rst +14 -0
- corner-2.2.3/docs/conf.py +44 -0
- corner-2.2.3/docs/index.md +69 -0
- corner-2.2.3/docs/install.rst +58 -0
- corner-2.2.3/docs/pages/arviz.ipynb +75 -0
- corner-2.2.3/docs/pages/custom.ipynb +136 -0
- corner-2.2.3/docs/pages/matplotlibrc +3 -0
- corner-2.2.3/docs/pages/quickstart.ipynb +97 -0
- corner-2.2.3/docs/pages/sigmas.ipynb +103 -0
- corner-2.2.3/paper/corner.png +0 -0
- corner-2.2.3/paper/paper.bib +26 -0
- corner-2.2.3/paper/paper.json +17 -0
- corner-2.2.3/paper/paper.md +37 -0
- corner-2.2.3/paper/paper.tex +114 -0
- {corner-2.2.2 → corner-2.2.3}/pyproject.toml +7 -4
- {corner-2.2.2 → corner-2.2.3}/src/corner/core.py +8 -2
- corner-2.2.3/src/corner/version.py +16 -0
- corner-2.2.3/tests/baseline_images/test_corner/1d_fig_argument.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/arviz.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/basic.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/basic_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/basic_log_x2_only.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/bins.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/bins_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/color.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/color_filled.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/extended_overplotting.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/hist_bin_factor.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/hist_bin_factor_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/labels.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/no_fill_contours.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/overplot.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/overplot_1d.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/overplot_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/pandas.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/quantiles.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/quantiles_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/range_fig_arg.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/reverse.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/reverse_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/reverse_overplotting.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/reverse_truths.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/smooth.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/smooth1d.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/smooth1d_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/smooth_log.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/tight.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/title_quantiles.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/title_quantiles_default.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/title_quantiles_raises.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/titles1.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/titles2.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/top_ticks.png +0 -0
- corner-2.2.3/tests/baseline_images/test_corner/truths.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/backgroundColor.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/backgroundDark.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/backgroundDark2.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/backgroundSolarized.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/basic.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/color.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/cutoff.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/cutoff2.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/filled.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/levels1.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/levels2.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/lowN.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/lowNfilled.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/lowNnofill.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/philsplot.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/smooth1.png +0 -0
- corner-2.2.3/tests/baseline_images/test_hist2d/smooth2.png +0 -0
- corner-2.2.3/tests/conftest.py +23 -0
- corner-2.2.3/tests/test_corner.py +399 -0
- corner-2.2.3/tests/test_hist2d.py +182 -0
- corner-2.2.3/tests/test_quantile.py +55 -0
- corner-2.2.2/.coveragerc +0 -4
- corner-2.2.2/PKG-INFO +0 -46
- corner-2.2.2/setup.cfg +0 -4
- corner-2.2.2/setup.py +0 -7
- corner-2.2.2/src/corner/version.py +0 -4
- corner-2.2.2/src/corner.egg-info/SOURCES.txt +0 -23
- corner-2.2.2/src/corner.egg-info/dependency_links.txt +0 -1
- corner-2.2.2/src/corner.egg-info/requires.txt +0 -17
- corner-2.2.2/src/corner.egg-info/top_level.txt +0 -1
- {corner-2.2.2 → corner-2.2.3}/.gitignore +0 -0
- {corner-2.2.2 → corner-2.2.3}/CODE_OF_CONDUCT.md +0 -0
- {corner-2.2.2 → corner-2.2.3}/CONTRIBUTING.md +0 -0
- {corner-2.2.2 → corner-2.2.3}/LICENSE +0 -0
- {corner-2.2.2 → corner-2.2.3}/MANIFEST.in +0 -0
- {corner-2.2.2 → corner-2.2.3}/README.md +0 -0
- {corner-2.2.2 → corner-2.2.3}/noxfile.py +0 -0
- {corner-2.2.2 → corner-2.2.3}/readthedocs.yaml +0 -0
- {corner-2.2.2 → corner-2.2.3}/src/corner/__init__.py +0 -0
- {corner-2.2.2 → corner-2.2.3}/src/corner/arviz_corner.py +0 -0
- {corner-2.2.2 → corner-2.2.3}/src/corner/corner.py +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
_commit: v0.0.14
|
|
2
|
+
_src_path: gh:dfm/copier-python
|
|
3
|
+
author_email: foreman.mackey@gmail.com
|
|
4
|
+
author_fullname: Dan Foreman-Mackey
|
|
5
|
+
author_username: dfm
|
|
6
|
+
code_of_conduct_email: foreman.mackey@gmail.com
|
|
7
|
+
copyright_holder: Dan Foreman-Mackey
|
|
8
|
+
copyright_license: BSD
|
|
9
|
+
copyright_year: 2013-2022
|
|
10
|
+
documentation_url: https://corner.readthedocs.io
|
|
11
|
+
enable_mypy: false
|
|
12
|
+
enable_pybind11: false
|
|
13
|
+
enable_windows: false
|
|
14
|
+
general_nox_sessions: '"lint"'
|
|
15
|
+
project_description: Make some beautiful corner plots
|
|
16
|
+
project_development_status: stable
|
|
17
|
+
project_line_length: 79
|
|
18
|
+
project_name: corner.py
|
|
19
|
+
python_formal_min_version: 6
|
|
20
|
+
python_max_version: 10
|
|
21
|
+
python_min_version: 7
|
|
22
|
+
python_nox_sessions: '"tests"'
|
|
23
|
+
python_package_distribution_name: corner
|
|
24
|
+
python_package_import_name: corner
|
|
25
|
+
readthedocs_project_name: corner
|
|
26
|
+
repository_name: corner.py
|
|
27
|
+
repository_namespace: dfm
|
|
28
|
+
|
|
@@ -15,29 +15,26 @@ jobs:
|
|
|
15
15
|
fail-fast: false
|
|
16
16
|
matrix:
|
|
17
17
|
os: ["ubuntu-latest"]
|
|
18
|
-
python-version: ["3.
|
|
18
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
19
19
|
nox-session: ["tests"]
|
|
20
20
|
include:
|
|
21
|
-
- os: macos-latest
|
|
22
|
-
python-version: "3.10"
|
|
23
|
-
nox-session: "tests"
|
|
24
21
|
- os: ubuntu-latest
|
|
25
22
|
python-version: "3.10"
|
|
26
23
|
nox-session: "lint"
|
|
27
24
|
|
|
28
25
|
steps:
|
|
29
26
|
- name: Checkout
|
|
30
|
-
uses: actions/checkout@
|
|
27
|
+
uses: actions/checkout@v4
|
|
31
28
|
with:
|
|
32
29
|
submodules: true
|
|
33
30
|
fetch-depth: 0
|
|
34
31
|
- name: Configure Python
|
|
35
|
-
uses: actions/setup-python@
|
|
32
|
+
uses: actions/setup-python@v5
|
|
36
33
|
with:
|
|
37
34
|
python-version: ${{ matrix.python-version }}
|
|
38
35
|
- name: Cache pre-commit environments
|
|
39
36
|
if: ${{ matrix.nox-session == 'lint' }}
|
|
40
|
-
uses: actions/cache@
|
|
37
|
+
uses: actions/cache@v4
|
|
41
38
|
with:
|
|
42
39
|
path: ~/.cache/pre-commit
|
|
43
40
|
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
|
@@ -50,7 +47,7 @@ jobs:
|
|
|
50
47
|
- name: Run tests
|
|
51
48
|
run: python -m nox --non-interactive -s ${{ matrix.nox-session }}
|
|
52
49
|
- name: Upload generated images on failure
|
|
53
|
-
uses: actions/upload-artifact@
|
|
50
|
+
uses: actions/upload-artifact@v4
|
|
54
51
|
if: ${{ failure() && matrix.nox-session == 'tests' }}
|
|
55
52
|
with:
|
|
56
53
|
name: images-${{ matrix.os }}-${{ matrix.python-version }}
|
|
@@ -59,10 +56,10 @@ jobs:
|
|
|
59
56
|
build:
|
|
60
57
|
runs-on: ubuntu-latest
|
|
61
58
|
steps:
|
|
62
|
-
- uses: actions/checkout@
|
|
59
|
+
- uses: actions/checkout@v4
|
|
63
60
|
with:
|
|
64
61
|
fetch-depth: 0
|
|
65
|
-
- uses: actions/setup-python@
|
|
62
|
+
- uses: actions/setup-python@v5
|
|
66
63
|
name: Install Python
|
|
67
64
|
with:
|
|
68
65
|
python-version: "3.10"
|
|
@@ -71,7 +68,7 @@ jobs:
|
|
|
71
68
|
python -m pip install -U pip
|
|
72
69
|
python -m pip install -U build
|
|
73
70
|
python -m build .
|
|
74
|
-
- uses: actions/upload-artifact@
|
|
71
|
+
- uses: actions/upload-artifact@v4
|
|
75
72
|
with:
|
|
76
73
|
path: dist/*
|
|
77
74
|
|
|
@@ -80,12 +77,12 @@ jobs:
|
|
|
80
77
|
runs-on: ubuntu-latest
|
|
81
78
|
if: startsWith(github.ref, 'refs/tags/')
|
|
82
79
|
steps:
|
|
83
|
-
- uses: actions/download-artifact@
|
|
80
|
+
- uses: actions/download-artifact@v4
|
|
84
81
|
with:
|
|
85
82
|
name: artifact
|
|
86
83
|
path: dist
|
|
87
84
|
|
|
88
|
-
- uses: pypa/gh-action-pypi-publish@v1.
|
|
85
|
+
- uses: pypa/gh-action-pypi-publish@v1.11.0
|
|
89
86
|
with:
|
|
90
87
|
user: __token__
|
|
91
88
|
password: ${{ secrets.pypi_password }}
|
|
@@ -7,7 +7,7 @@ repos:
|
|
|
7
7
|
language: fail
|
|
8
8
|
files: "\\.rej$"
|
|
9
9
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
10
|
-
rev:
|
|
10
|
+
rev: v5.0.0
|
|
11
11
|
hooks:
|
|
12
12
|
- id: trailing-whitespace
|
|
13
13
|
- id: end-of-file-fixer
|
|
@@ -15,15 +15,15 @@ repos:
|
|
|
15
15
|
exclude: ".copier-answers.yml"
|
|
16
16
|
- id: check-yaml
|
|
17
17
|
- repo: https://github.com/PyCQA/isort
|
|
18
|
-
rev: "5.
|
|
18
|
+
rev: "5.13.2"
|
|
19
19
|
hooks:
|
|
20
20
|
- id: isort
|
|
21
21
|
additional_dependencies: [toml]
|
|
22
22
|
- repo: https://github.com/psf/black
|
|
23
|
-
rev: "
|
|
23
|
+
rev: "24.10.0"
|
|
24
24
|
hooks:
|
|
25
25
|
- id: black-jupyter
|
|
26
26
|
- repo: https://github.com/kynan/nbstripout
|
|
27
|
-
rev: "0.
|
|
27
|
+
rev: "0.8.1"
|
|
28
28
|
hooks:
|
|
29
29
|
- id: nbstripout
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: corner
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: Make some beautiful corner plots
|
|
5
|
-
Author-email: Dan Foreman-Mackey <foreman.mackey@gmail.com>
|
|
6
|
-
License: BSD 2-Clause License
|
|
7
5
|
Project-URL: Homepage, https://corner.readthedocs.io
|
|
8
6
|
Project-URL: Source, https://github.com/dfm/corner.py
|
|
9
7
|
Project-URL: Bug Tracker, https://github.com/dfm/corner.py/issues
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Author-email: Dan Foreman-Mackey <foreman.mackey@gmail.com>
|
|
9
|
+
License: BSD 2-Clause License
|
|
12
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
11
|
Classifier: License :: OSI Approved :: BSD License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Requires-Python: >=3.9
|
|
15
|
-
|
|
16
|
-
Provides-Extra: test
|
|
15
|
+
Requires-Dist: matplotlib>=2.1
|
|
17
16
|
Provides-Extra: arviz
|
|
17
|
+
Requires-Dist: arviz>=0.9; extra == 'arviz'
|
|
18
18
|
Provides-Extra: docs
|
|
19
|
-
|
|
19
|
+
Requires-Dist: arviz>=0.9; extra == 'docs'
|
|
20
|
+
Requires-Dist: ipython; extra == 'docs'
|
|
21
|
+
Requires-Dist: myst-nb; extra == 'docs'
|
|
22
|
+
Requires-Dist: pandoc; extra == 'docs'
|
|
23
|
+
Requires-Dist: sphinx-book-theme; extra == 'docs'
|
|
24
|
+
Requires-Dist: sphinx>=1.7.5; extra == 'docs'
|
|
25
|
+
Provides-Extra: test
|
|
26
|
+
Requires-Dist: arviz>=0.9; extra == 'test'
|
|
27
|
+
Requires-Dist: pytest; extra == 'test'
|
|
28
|
+
Requires-Dist: scipy; extra == 'test'
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
20
30
|
|
|
21
31
|
# corner.py
|
|
22
32
|
|
corner-2.2.3/corner.png
ADDED
|
Binary file
|
corner-2.2.3/demo.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import numpy as np
|
|
5
|
+
from matplotlib import rcParams
|
|
6
|
+
|
|
7
|
+
import corner
|
|
8
|
+
|
|
9
|
+
rcParams["font.size"] = 16
|
|
10
|
+
rcParams["font.family"] = "sans-serif"
|
|
11
|
+
rcParams["font.sans-serif"] = ["Computer Modern Sans"]
|
|
12
|
+
rcParams["text.usetex"] = True
|
|
13
|
+
rcParams["text.latex.preamble"] = r"\usepackage{cmbright}"
|
|
14
|
+
|
|
15
|
+
np.random.seed(42)
|
|
16
|
+
|
|
17
|
+
# Set up the parameters of the problem.
|
|
18
|
+
ndim, nsamples = 3, 50000
|
|
19
|
+
|
|
20
|
+
# Generate some fake data.
|
|
21
|
+
data1 = np.random.randn(ndim * 4 * nsamples / 5).reshape(
|
|
22
|
+
[4 * nsamples / 5, ndim]
|
|
23
|
+
)
|
|
24
|
+
data2 = 4 * np.random.rand(ndim)[None, :] + np.random.randn(
|
|
25
|
+
ndim * nsamples / 5
|
|
26
|
+
).reshape([nsamples / 5, ndim])
|
|
27
|
+
data = np.vstack([data1, data2])
|
|
28
|
+
|
|
29
|
+
# Plot it.
|
|
30
|
+
figure = corner.corner(
|
|
31
|
+
data,
|
|
32
|
+
labels=[
|
|
33
|
+
r"$x$",
|
|
34
|
+
r"$y$",
|
|
35
|
+
r"$\log \alpha$",
|
|
36
|
+
r"$\Gamma \, [\mathrm{parsec}]$",
|
|
37
|
+
],
|
|
38
|
+
quantiles=[0.16, 0.5, 0.84],
|
|
39
|
+
show_titles=True,
|
|
40
|
+
title_kwargs={"fontsize": 12},
|
|
41
|
+
)
|
|
42
|
+
figure.gca().annotate(
|
|
43
|
+
"a demo corner plot",
|
|
44
|
+
xy=(1.0, 1.0),
|
|
45
|
+
xycoords="figure fraction",
|
|
46
|
+
xytext=(-20, -10),
|
|
47
|
+
textcoords="offset points",
|
|
48
|
+
ha="right",
|
|
49
|
+
va="top",
|
|
50
|
+
)
|
|
51
|
+
figure.savefig("demo.png", dpi=300)
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Makefile for Sphinx documentation
|
|
2
|
+
|
|
3
|
+
default: dirhtml
|
|
4
|
+
|
|
5
|
+
# You can set these variables from the command line.
|
|
6
|
+
SPHINXOPTS =
|
|
7
|
+
SPHINXBUILD = sphinx-build
|
|
8
|
+
PAPER =
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# User-friendly check for sphinx-build
|
|
12
|
+
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
|
13
|
+
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from http://sphinx-doc.org/)
|
|
14
|
+
endif
|
|
15
|
+
|
|
16
|
+
# Internal variables.
|
|
17
|
+
PAPEROPT_a4 = -D latex_paper_size=a4
|
|
18
|
+
PAPEROPT_letter = -D latex_paper_size=letter
|
|
19
|
+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
|
20
|
+
# the i18n builder cannot share the environment and doctrees with the others
|
|
21
|
+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
|
22
|
+
|
|
23
|
+
.PHONY: help
|
|
24
|
+
help:
|
|
25
|
+
@echo "Please use \`make <target>' where <target> is one of"
|
|
26
|
+
@echo " html to make standalone HTML files"
|
|
27
|
+
@echo " dirhtml to make HTML files named index.html in directories"
|
|
28
|
+
@echo " singlehtml to make a single large HTML file"
|
|
29
|
+
@echo " pickle to make pickle files"
|
|
30
|
+
@echo " json to make JSON files"
|
|
31
|
+
@echo " htmlhelp to make HTML files and a HTML help project"
|
|
32
|
+
@echo " qthelp to make HTML files and a qthelp project"
|
|
33
|
+
@echo " applehelp to make an Apple Help Book"
|
|
34
|
+
@echo " devhelp to make HTML files and a Devhelp project"
|
|
35
|
+
@echo " epub to make an epub"
|
|
36
|
+
@echo " epub3 to make an epub3"
|
|
37
|
+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
|
38
|
+
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
|
39
|
+
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
|
40
|
+
@echo " text to make text files"
|
|
41
|
+
@echo " man to make manual pages"
|
|
42
|
+
@echo " texinfo to make Texinfo files"
|
|
43
|
+
@echo " info to make Texinfo files and run them through makeinfo"
|
|
44
|
+
@echo " gettext to make PO message catalogs"
|
|
45
|
+
@echo " changes to make an overview of all changed/added/deprecated items"
|
|
46
|
+
@echo " xml to make Docutils-native XML files"
|
|
47
|
+
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
|
48
|
+
@echo " linkcheck to check all external links for integrity"
|
|
49
|
+
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
|
50
|
+
@echo " coverage to run coverage check of the documentation (if enabled)"
|
|
51
|
+
@echo " dummy to check syntax errors of document sources"
|
|
52
|
+
|
|
53
|
+
.PHONY: clean
|
|
54
|
+
clean:
|
|
55
|
+
rm -rf $(BUILDDIR)/* $(PAGES)
|
|
56
|
+
|
|
57
|
+
.PHONY: html
|
|
58
|
+
html:
|
|
59
|
+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
|
60
|
+
@echo
|
|
61
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
|
62
|
+
|
|
63
|
+
.PHONY: dirhtml
|
|
64
|
+
dirhtml: $(PAGES)
|
|
65
|
+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
|
66
|
+
@echo
|
|
67
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
|
68
|
+
|
|
69
|
+
.PHONY: singlehtml
|
|
70
|
+
singlehtml:
|
|
71
|
+
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
|
72
|
+
@echo
|
|
73
|
+
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
|
74
|
+
|
|
75
|
+
.PHONY: pickle
|
|
76
|
+
pickle:
|
|
77
|
+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
|
78
|
+
@echo
|
|
79
|
+
@echo "Build finished; now you can process the pickle files."
|
|
80
|
+
|
|
81
|
+
.PHONY: json
|
|
82
|
+
json:
|
|
83
|
+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
|
84
|
+
@echo
|
|
85
|
+
@echo "Build finished; now you can process the JSON files."
|
|
86
|
+
|
|
87
|
+
.PHONY: htmlhelp
|
|
88
|
+
htmlhelp:
|
|
89
|
+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
|
90
|
+
@echo
|
|
91
|
+
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
|
92
|
+
".hhp project file in $(BUILDDIR)/htmlhelp."
|
|
93
|
+
|
|
94
|
+
.PHONY: qthelp
|
|
95
|
+
qthelp:
|
|
96
|
+
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
|
97
|
+
@echo
|
|
98
|
+
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
|
99
|
+
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
|
100
|
+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/cornerpy.qhcp"
|
|
101
|
+
@echo "To view the help file:"
|
|
102
|
+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/cornerpy.qhc"
|
|
103
|
+
|
|
104
|
+
.PHONY: applehelp
|
|
105
|
+
applehelp:
|
|
106
|
+
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
|
|
107
|
+
@echo
|
|
108
|
+
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
|
|
109
|
+
@echo "N.B. You won't be able to view it unless you put it in" \
|
|
110
|
+
"~/Library/Documentation/Help or install it in your application" \
|
|
111
|
+
"bundle."
|
|
112
|
+
|
|
113
|
+
.PHONY: devhelp
|
|
114
|
+
devhelp:
|
|
115
|
+
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
|
116
|
+
@echo
|
|
117
|
+
@echo "Build finished."
|
|
118
|
+
@echo "To view the help file:"
|
|
119
|
+
@echo "# mkdir -p $$HOME/.local/share/devhelp/cornerpy"
|
|
120
|
+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/cornerpy"
|
|
121
|
+
@echo "# devhelp"
|
|
122
|
+
|
|
123
|
+
.PHONY: epub
|
|
124
|
+
epub:
|
|
125
|
+
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
|
126
|
+
@echo
|
|
127
|
+
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
|
128
|
+
|
|
129
|
+
.PHONY: epub3
|
|
130
|
+
epub3:
|
|
131
|
+
$(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3
|
|
132
|
+
@echo
|
|
133
|
+
@echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3."
|
|
134
|
+
|
|
135
|
+
.PHONY: latex
|
|
136
|
+
latex:
|
|
137
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
138
|
+
@echo
|
|
139
|
+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
|
140
|
+
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
|
141
|
+
"(use \`make latexpdf' here to do that automatically)."
|
|
142
|
+
|
|
143
|
+
.PHONY: latexpdf
|
|
144
|
+
latexpdf:
|
|
145
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
146
|
+
@echo "Running LaTeX files through pdflatex..."
|
|
147
|
+
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
|
148
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
149
|
+
|
|
150
|
+
.PHONY: latexpdfja
|
|
151
|
+
latexpdfja:
|
|
152
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
153
|
+
@echo "Running LaTeX files through platex and dvipdfmx..."
|
|
154
|
+
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
|
155
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
156
|
+
|
|
157
|
+
.PHONY: text
|
|
158
|
+
text:
|
|
159
|
+
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
|
160
|
+
@echo
|
|
161
|
+
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
|
162
|
+
|
|
163
|
+
.PHONY: man
|
|
164
|
+
man:
|
|
165
|
+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
|
166
|
+
@echo
|
|
167
|
+
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
|
168
|
+
|
|
169
|
+
.PHONY: texinfo
|
|
170
|
+
texinfo:
|
|
171
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
172
|
+
@echo
|
|
173
|
+
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
|
174
|
+
@echo "Run \`make' in that directory to run these through makeinfo" \
|
|
175
|
+
"(use \`make info' here to do that automatically)."
|
|
176
|
+
|
|
177
|
+
.PHONY: info
|
|
178
|
+
info:
|
|
179
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
180
|
+
@echo "Running Texinfo files through makeinfo..."
|
|
181
|
+
make -C $(BUILDDIR)/texinfo info
|
|
182
|
+
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
|
183
|
+
|
|
184
|
+
.PHONY: gettext
|
|
185
|
+
gettext:
|
|
186
|
+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
|
187
|
+
@echo
|
|
188
|
+
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
|
189
|
+
|
|
190
|
+
.PHONY: changes
|
|
191
|
+
changes:
|
|
192
|
+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
|
193
|
+
@echo
|
|
194
|
+
@echo "The overview file is in $(BUILDDIR)/changes."
|
|
195
|
+
|
|
196
|
+
.PHONY: linkcheck
|
|
197
|
+
linkcheck:
|
|
198
|
+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
|
199
|
+
@echo
|
|
200
|
+
@echo "Link check complete; look for any errors in the above output " \
|
|
201
|
+
"or in $(BUILDDIR)/linkcheck/output.txt."
|
|
202
|
+
|
|
203
|
+
.PHONY: doctest
|
|
204
|
+
doctest:
|
|
205
|
+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
|
206
|
+
@echo "Testing of doctests in the sources finished, look at the " \
|
|
207
|
+
"results in $(BUILDDIR)/doctest/output.txt."
|
|
208
|
+
|
|
209
|
+
.PHONY: coverage
|
|
210
|
+
coverage:
|
|
211
|
+
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
|
|
212
|
+
@echo "Testing of coverage in the sources finished, look at the " \
|
|
213
|
+
"results in $(BUILDDIR)/coverage/python.txt."
|
|
214
|
+
|
|
215
|
+
.PHONY: xml
|
|
216
|
+
xml:
|
|
217
|
+
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
|
218
|
+
@echo
|
|
219
|
+
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
|
220
|
+
|
|
221
|
+
.PHONY: pseudoxml
|
|
222
|
+
pseudoxml:
|
|
223
|
+
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
|
224
|
+
@echo
|
|
225
|
+
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
|
226
|
+
|
|
227
|
+
.PHONY: dummy
|
|
228
|
+
dummy:
|
|
229
|
+
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
|
|
230
|
+
@echo
|
|
231
|
+
@echo "Build finished. Dummy builder generates no files."
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.. module:: corner
|
|
2
|
+
|
|
3
|
+
Detailed API documentation
|
|
4
|
+
==========================
|
|
5
|
+
|
|
6
|
+
The main user-facing function is :func:`corner.corner` but the lower level
|
|
7
|
+
functions :func:`corner.hist2d` and :func:`corner.quantile` are also
|
|
8
|
+
documented here.
|
|
9
|
+
|
|
10
|
+
.. autofunction:: corner.corner
|
|
11
|
+
.. autofunction:: corner.hist2d
|
|
12
|
+
.. autofunction:: corner.quantile
|
|
13
|
+
.. autofunction:: corner.overplot_lines
|
|
14
|
+
.. autofunction:: corner.overplot_points
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
import corner
|
|
4
|
+
|
|
5
|
+
extensions = [
|
|
6
|
+
"sphinx.ext.autodoc",
|
|
7
|
+
"sphinx.ext.mathjax",
|
|
8
|
+
"sphinx.ext.napoleon",
|
|
9
|
+
"myst_nb",
|
|
10
|
+
"IPython.sphinxext.ipython_console_highlighting",
|
|
11
|
+
]
|
|
12
|
+
master_doc = "index"
|
|
13
|
+
|
|
14
|
+
# General information about the project.
|
|
15
|
+
project = "corner.py"
|
|
16
|
+
copyright = "2013-2021 Dan Foreman-Mackey & contributors"
|
|
17
|
+
|
|
18
|
+
version = corner.__version__
|
|
19
|
+
release = corner.__version__
|
|
20
|
+
|
|
21
|
+
exclude_patterns = ["_build"]
|
|
22
|
+
html_theme = "sphinx_book_theme"
|
|
23
|
+
html_title = "corner.py"
|
|
24
|
+
html_static_path = ["_static"]
|
|
25
|
+
html_show_sourcelink = False
|
|
26
|
+
html_theme_options = {
|
|
27
|
+
"path_to_docs": "docs",
|
|
28
|
+
"repository_url": "https://github.com/dfm/corner.py",
|
|
29
|
+
"repository_branch": "main",
|
|
30
|
+
"launch_buttons": {
|
|
31
|
+
"binderhub_url": "https://mybinder.org",
|
|
32
|
+
"colab_url": "https://colab.research.google.com/",
|
|
33
|
+
"notebook_interface": "jupyterlab",
|
|
34
|
+
},
|
|
35
|
+
"use_edit_page_button": True,
|
|
36
|
+
"use_issues_button": True,
|
|
37
|
+
"use_repository_button": True,
|
|
38
|
+
"use_download_button": True,
|
|
39
|
+
}
|
|
40
|
+
html_baseurl = "https://corner.readthedocs.io/en/latest/"
|
|
41
|
+
nb_execution_mode = "force"
|
|
42
|
+
|
|
43
|
+
# download notebooks as .ipynb and not as .ipynb.txt
|
|
44
|
+
html_sourcelink_suffix = ""
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# corner.py
|
|
2
|
+
|
|
3
|
+
_Make some beautiful corner plots._
|
|
4
|
+
|
|
5
|
+
```{admonition} Corner plot /ˈkôrnər plät/ (noun):
|
|
6
|
+
:class: tip
|
|
7
|
+
|
|
8
|
+
An illustrative representation of different projections of samples in
|
|
9
|
+
high dimensional spaces. It is awesome. I promise.
|
|
10
|
+
_Synonyms: scatterplot matrix, pairs plot, draftsman's display_
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This Python module uses [matplotlib](https://matplotlib.org/) to visualize
|
|
14
|
+
multidimensional samples using a scatterplot matrix.
|
|
15
|
+
In these visualizations, each one- and two-dimensional projection of the
|
|
16
|
+
sample is plotted to reveal covariances.
|
|
17
|
+
_corner_ was originally conceived to display the results of Markov Chain
|
|
18
|
+
Monte Carlo simulations and the defaults are chosen with this application in
|
|
19
|
+
mind but it can be used for displaying many qualitatively different samples.
|
|
20
|
+
|
|
21
|
+
Development of _corner_ happens [on GitHub](https://github.com/dfm/corner.py) so you can [raise any issues you have there](https://github.com/dfm/corner.py/issues).
|
|
22
|
+
_corner_ has been used extensively in the astronomical literature and it [has occasionally been cited](https://ui.adsabs.harvard.edu/abs/2016JOSS....1...24F/citations)
|
|
23
|
+
as `corner.py` or using its previous name `triangle.py`.
|
|
24
|
+
|
|
25
|
+
[](https://github.com/dfm/corner.py/actions)
|
|
26
|
+
[](https://github.com/dfm/corner.py/blob/main/LICENSE)
|
|
27
|
+
[](https://zenodo.org/badge/latestdoi/4729/dfm/corner.py)
|
|
28
|
+
[](http://dx.doi.org/10.21105/joss.00024)
|
|
29
|
+
|
|
30
|
+
## Documentation
|
|
31
|
+
|
|
32
|
+
```{toctree}
|
|
33
|
+
:maxdepth: 2
|
|
34
|
+
|
|
35
|
+
install
|
|
36
|
+
pages/quickstart
|
|
37
|
+
pages/sigmas
|
|
38
|
+
pages/custom
|
|
39
|
+
pages/arviz
|
|
40
|
+
api
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Attribution
|
|
44
|
+
|
|
45
|
+
If you make use of this code, please cite [the JOSS paper](https://dx.doi.org/10.21105/joss.00024):
|
|
46
|
+
|
|
47
|
+
```tex
|
|
48
|
+
@article{corner,
|
|
49
|
+
doi = {10.21105/joss.00024},
|
|
50
|
+
url = {https://doi.org/10.21105/joss.00024},
|
|
51
|
+
year = {2016},
|
|
52
|
+
month = {jun},
|
|
53
|
+
publisher = {The Open Journal},
|
|
54
|
+
volume = {1},
|
|
55
|
+
number = {2},
|
|
56
|
+
pages = {24},
|
|
57
|
+
author = {Daniel Foreman-Mackey},
|
|
58
|
+
title = {corner.py: Scatterplot matrices in Python},
|
|
59
|
+
journal = {The Journal of Open Source Software}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Authors & License
|
|
64
|
+
|
|
65
|
+
Copyright 2013-2021 Dan Foreman-Mackey
|
|
66
|
+
|
|
67
|
+
Built by [Dan Foreman-Mackey](https://github.com/dfm) and contributors (see
|
|
68
|
+
[the contribution graph](https://github.com/dfm/corner.py/graphs/contributors) for the most
|
|
69
|
+
up to date list). Licensed under the 2-clause BSD license (see `LICENSE`).
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.. _install:
|
|
2
|
+
|
|
3
|
+
Installation
|
|
4
|
+
============
|
|
5
|
+
|
|
6
|
+
Dependencies
|
|
7
|
+
------------
|
|
8
|
+
|
|
9
|
+
corner.py depends on ``matplotlib``, ``numpy``, and optionally ``scipy``. You
|
|
10
|
+
can install these using your favorite Python package manager and I would
|
|
11
|
+
recommend `conda <http://conda.pydata.org/docs/>`_ if you don't already have
|
|
12
|
+
an opinion.
|
|
13
|
+
|
|
14
|
+
Using pip
|
|
15
|
+
---------
|
|
16
|
+
|
|
17
|
+
The easiest way to install the most recent stable version of ``corner`` is
|
|
18
|
+
with `pip <http://www.pip-installer.org/>`_:
|
|
19
|
+
|
|
20
|
+
.. code-block:: bash
|
|
21
|
+
|
|
22
|
+
python -m pip install corner
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
From source
|
|
26
|
+
-----------
|
|
27
|
+
|
|
28
|
+
Alternatively, you can get the source by downloading a `tarball
|
|
29
|
+
<https://github.com/dfm/corner.py/tarball/master>`_ or cloning `the git
|
|
30
|
+
repository <https://github.com/dfm/corner.py>`_:
|
|
31
|
+
|
|
32
|
+
.. code-block:: bash
|
|
33
|
+
|
|
34
|
+
git clone https://github.com/dfm/corner.py.git
|
|
35
|
+
|
|
36
|
+
Once you've downloaded the source, you can navigate into the root source
|
|
37
|
+
directory and run:
|
|
38
|
+
|
|
39
|
+
.. code-block:: bash
|
|
40
|
+
|
|
41
|
+
python -m pip install .
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
Tests
|
|
45
|
+
-----
|
|
46
|
+
|
|
47
|
+
If you installed from source, you can run the unit tests, but know that
|
|
48
|
+
plotting-based tests can be pretty brittle. From the root of the
|
|
49
|
+
source directory, run:
|
|
50
|
+
|
|
51
|
+
.. code-block:: bash
|
|
52
|
+
|
|
53
|
+
python -m pip install nox
|
|
54
|
+
python -m nox -s tests-PYTHON_VERSION
|
|
55
|
+
|
|
56
|
+
Where ``PYTHON_VERSION`` is the version of Python you're using (e.g.
|
|
57
|
+
``3.10``) This might take a few minutes but you shouldn't get any errors
|
|
58
|
+
if all went as planned.
|