Skip to main content

Create pretty corner plots.

Project description

Create eye-pleasing cornerplots (and maybe other types of plots in the future).

Usage example(s):

import numpy as np
import prettyplease

# Generate some example data
rng = np.random.default_rng()
n_samples = 100000
n_dim = 4
x = rng.normal(1.618, 0.2, size=(n_samples, n_dim))
# x is an ndarray of shape (n_samples, n_dim)

# With default settings
fig = prettyplease.corner(x)
fig.savefig('default.pdf', bbox_inches='tight')

# With some customization
labels = [rf'$\theta_{i}$' for i in range(n_dim)]
fig = prettyplease.corner(x, bins=30, labels=labels, plot_estimates=True, colors='red', n_uncertainty_digits=4, title_loc='center', figsize=(7,7))
fig.savefig('custom.pdf', bbox_inches='tight')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prettyplease-0.13.1.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prettyplease-0.13.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file prettyplease-0.13.1.tar.gz.

File metadata

  • Download URL: prettyplease-0.13.1.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for prettyplease-0.13.1.tar.gz
Algorithm Hash digest
SHA256 d58bb7bca01f214af28edf696121f8d7fd9670c19d6c74f2a76b6475b764bae6
MD5 f1a3c0f65c8633ea0b21319b4acc1a2f
BLAKE2b-256 3b530ccdd1e8b9f078be9d8a5fc6b11504a0c5c6b0bf5f78fbe38561df88c2a1

See more details on using hashes here.

File details

Details for the file prettyplease-0.13.1-py3-none-any.whl.

File metadata

  • Download URL: prettyplease-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for prettyplease-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0328c1b542f402a00cf41b122806e25d16de0d88c80b2679a6890211a52e0e5a
MD5 f95c1f489ef240dd727785aa7ae5ccaf
BLAKE2b-256 d49b861b6540c632afe2ea1aed3d340e0b09db9db07c65f46871fdaaa7e2ecb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page