Skip to main content

cantuccio: yet another corner plot library

Cantuccio Logo Documentation Status
PyPI version   MIT License

can·tuc·cio | /kan'tutːʃo/ noun [masculine]

  1. an Italian biscuit from Tuscany.
  2. corner, nook.

cantuccio is a Python library for creating corner plots, automatically handling the layout and size of labels, ticks, and legends. It is designed to be flexible and easy to use, allowing users to create publication-quality corner plots with minimal code. When dealing with large datasets, cantuccio can utilize the KDEpy package for faster KDE estimation.

Visual choices are inspired by many of the existing corner plot libraries, with particular credit to corner, chainconsumer, cornetto, and makecorner.

Installation

You can install cantuccio using pip:

This project is managed by uv. To set up the development environment, install uv if needed:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then, clone the repository and install the package in editable mode:

git clone https://github.com/asantini29/cantuccio
cd cantuccio
uv sync
uv run pip install -e .

Alternatively, you can install the latest version directly from PyPI:

pip install cantuccio

Example

Here is a simple example of how to use cantuccio to create a corner plot:

import numpy as np
import cantuccio as ct
# Generate some random data
data = np.random.randn(1000, 3)
labels = ['x', 'y', 'z']
data_dict = {label: data[:, i] for i, label in enumerate(labels)}
# Create a corner plot
fig, axs = ct.cornerplot(data_dict)
fig.show()

AI Statement

This project made use of generative AI. All the outputs have been reviewed and edited to ensure quality and consistency.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for cantuccio 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cantuccio 0.5.0
File Size Uploaded
cantuccio-0.5.0.tar.gz 39.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cantuccio 0.5.0
File Interpreter ABI Platform
cantuccio-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 74.7 kB

Release files / cantuccio-0.5.0.tar.gz

Download URL cantuccio-0.5.0.tar.gz
Size 39.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b6da56c4bbd387c5c8d678456cf69755aa43c6db2ce21c0aa0ef1aa36521225
BLAKE2b-256 checksum
How to use checksums
aa5684ba95301c6ad96619c119056ba79777fd1ebc8213fdb6e94c8238589a26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cantuccio-0.5.0-py3-none-any.whl

Download URL cantuccio-0.5.0-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85c5d9079c494551a4dd81c6c345ed5315ddc656dc4d16fb2caefcaaa1b7c842
BLAKE2b-256 checksum
How to use checksums
23a24571110dc6edb4a769979ff04c3e65475d5d56517978166f53bef940b87b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.3.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page