Skip to main content

Whimsical cat decorations for matplotlib figures.

Project description

meowplotlib

Before and after adding meowplotlib to a matplotlib chart

Whimsical cat decorations for matplotlib figures. One import, zero required config.

import matplotlib.pyplot as plt
import meowplotlib  # cats now appear on every figure you show or save

plt.plot([1, 2, 3], [1, 4, 9])
plt.savefig("chart.png")

Quickstart

pip install meowplotlib
import meowplotlib

meowplotlib.set_style("chonk")      # or a list, or "mix"
meowplotlib.set_density("chaotic")  # "sparse" | "normal" | "chaotic"
meowplotlib.set_seed(42)            # reproducible layouts
meowplotlib.disable()               # turn it off for the rest of the session
meowplotlib.enable()                # turn it back on

with meowplotlib.config(enabled=False):
    ...  # one chart rendered without cats

Config

Function Values Effect
set_style style name, list of names, or "mix" which cat art pool(s) to draw from
set_density "sparse" | "normal" | "chaotic" how many cats appear
set_seed int | None lock or randomize placement
enable() / disable() session on/off switch
config(**overrides) context manager temporary overrides for one block

Art

v1 ships with three real cat art styles: classic, derp, and chonk. Adding or swapping a style is a pure file-drop under src/meowplotlib/assets/images/<style>/ plus one styles.toml entry — no code changes required. See ATTRIBUTION.md for notes.

See STANDUP_PLAN.md and constitution.md for the full project contract.

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

meowplotlib-0.1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

meowplotlib-0.1.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file meowplotlib-0.1.0.tar.gz.

File metadata

  • Download URL: meowplotlib-0.1.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for meowplotlib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 648832e9a163943d74aae9883b166006c9c527b6b7dcccad365af1b469a836ee
MD5 dea07fdc15ecf0a725df0cce0aeec503
BLAKE2b-256 aac84341c3c329fe79f92fc821fd90de33b8e35454317ddcff0625b52d4dc92f

See more details on using hashes here.

Provenance

The following attestation bundles were made for meowplotlib-0.1.0.tar.gz:

Publisher: publish.yml on c-owen/meowplotlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meowplotlib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: meowplotlib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for meowplotlib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 513d62a1d728ee19ee8ef2987f4683659f3d5221fc2b3ea2edcd1042f61aef3a
MD5 019af679ac324d25e6aec61cf3f42afd
BLAKE2b-256 86624e12d5c10bdc1a004fc5e4b6854a08858fd8b64c774e68559ae076e5a202

See more details on using hashes here.

Provenance

The following attestation bundles were made for meowplotlib-0.1.0-py3-none-any.whl:

Publisher: publish.yml on c-owen/meowplotlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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