Skip to main content

Documentation Status pypi version

When you want to create or adjust the legend in matplotlib, things can get dirty. Legendkit may solve your headache.

Features

  • Easy title placement and alignment
  • Easy colorbar with shape
  • Layout for multiple legends and colorbar*

Installation

pip install legendkit

Quickstart

import numpy as np
import matplotlib.pyplot as plt
from legendkit import cat_legend, colorbar, vstack

fig, ax = plt.subplots()
data = np.random.rand(10, 10)
mappable = ax.pcolormesh(data, cmap="RdBu")

# Categorical legend
leg = cat_legend(ax, colors=["#e63946", "#457b9d", "#2a9d8f"],
                 labels=["Group A", "Group B", "Group C"], title="Groups")

# Colorbar placed outside axes
colorbar(mappable, ax=ax, title="Value")
plt.show()

Metadata

Release files for legendkit 0.5.2

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

Source distribution (sdist)

Source distribution for legendkit 0.5.2
File Size Uploaded Provenance Actions
legendkit-0.5.2.tar.gz 28.8 kB Without provenance Details for legendkit-0.5.2.tar.gz

Built distribution (wheel)

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

Total release size: 61.7 kB

Release files / legendkit-0.5.2.tar.gz

Download URL legendkit-0.5.2.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cb4f4c11f678b2af25f037a675c1f21120f7d160efb6f52ce1378a1906ef159c
BLAKE2b-256 checksum
How to use checksums
8f29a788c90ff1200444b487679507e93e5ad0c07783d34d93e1139ffc2d653a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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 / legendkit-0.5.2-py3-none-any.whl

Download URL legendkit-0.5.2-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3c547a1b84256e26d054740eac2fdafe128a1c8dd6bbbf363dbe3c2c2ba2f89
BLAKE2b-256 checksum
How to use checksums
34465b510d4452c1ba3c3935090263df7aad3367367a715a98806100d61b758a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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}

Security for legendkit 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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