Skip to main content

The sweetest corner plot package around.

Project description

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.

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

cantuccio-0.2.3.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

cantuccio-0.2.3-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file cantuccio-0.2.3.tar.gz.

File metadata

  • Download URL: cantuccio-0.2.3.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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}

File hashes

Hashes for cantuccio-0.2.3.tar.gz
Algorithm Hash digest
SHA256 86aeed89655eb86962b55c3c47deaf2d81ede61793a6d0b002e789011dde8d38
MD5 5456d2d3379f020daf150478caa973fb
BLAKE2b-256 eae009833bb8e9182bfd8c3fc2364a51bd83990c85bb0ec9f1f8697d5109e742

See more details on using hashes here.

File details

Details for the file cantuccio-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: cantuccio-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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}

File hashes

Hashes for cantuccio-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f12c0d16cda2e728eb4d2b9af1fc98a4551a9a5e570a5d2d2777b894fa083c7a
MD5 0aea68c40d12f4175e6f263664273620
BLAKE2b-256 77d1c2645d57d6d39406ca8a7006e5b392d93a6643166b4706361da54d57b635

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