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.12.2.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

prettyplease-0.12.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prettyplease-0.12.2.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for prettyplease-0.12.2.tar.gz
Algorithm Hash digest
SHA256 18369889c84f62b95fb9f2d98926c1718d5191d0c0899acedec23436b4c2ef97
MD5 a42e414492249bc14c5f2df2f0fa066f
BLAKE2b-256 d16c5bddeaf280e26150c897aded3133f34a802b07d7cb787f3a8d7b579a7890

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prettyplease-0.12.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for prettyplease-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9407179980c92528ec8e608feae03b0e1fc3b233ac2cbb263d58c7393e626d0
MD5 1522c18e65a1e24b1c1daffb923d0dbf
BLAKE2b-256 2a4a2042ce9dc85513f7ea47a5caf9ebcd1cee16d0f211f93e8ea9d60a6e6c0a

See more details on using hashes here.

Supported by

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