Skip to main content

Minimalist plotting defaults for Matplotlib.

Project description

SignalPlot

SignalPlot is a minimalist plotting library built on pure Matplotlib. It enforces clean defaults that prioritize data over decoration. Every figure aims for clarity, scale honesty, and visual restraint.

SignalPlot targets analysts, engineers, and researchers who want publication ready plots without manual styling work. The library avoids high level styling layers and works directly with Matplotlib primitives.

Design Philosophy

SignalPlot treats plots as analytical instruments. The figure should communicate structure, variation, and scale with minimal distraction. Decorative elements dilute interpretation. Honest axes preserve trust.

The style favors light backgrounds, thin spines, restrained color, and direct annotation. Figures remain readable in print, slides, and reports.

The visual approach draws inspiration from Edward Tufte, William Cleveland, and John Tukey. SignalPlot does not reproduce any single doctrine. It applies practical principles that improve readability and analytical trust.

What SignalPlot Does

SignalPlot applies a consistent minimalist style to Matplotlib figures. It removes unnecessary chart elements. It enforces honest scales. It standardizes typography and spacing. It saves figures at publication quality resolution by default.

The library stays small by design. It does not wrap Matplotlib. It sets disciplined defaults and provides a few helpers for common patterns.

What SignalPlot Does Not Do

SignalPlot does not depend on Seaborn or any high level styling framework. It does not add decorative themes. It does not alter data or exaggerate effects. It does not hide Matplotlib behavior behind abstractions.

Style Contract

Figures use a white or near white background. Primary data appears in black or dark gray. Secondary elements appear in lighter gray. One accent color may appear for emphasis.

Top and right spines remain hidden. Left and bottom spines stay thin and light. Gridlines appear only on the y axis and remain subtle.

Axes labels remain optional. Titles carry descriptive meaning. Direct labels replace legends when practical. Typography stays consistent and modest.

Bar charts start at zero. Scales remain linear unless data demands otherwise.

Always

  • Use pure Matplotlib: rely on Matplotlib primitives, not styling wrappers or theme systems.
  • Keep the palette restrained: black or dark gray for primary data, medium gray for secondary structure, and a single red accent (via signalplot.ACCENT) for emphasis only.
  • Remove chartjunk: no 3D, shadows, gradients, or decorative textures.
  • Keep framing light: hide top and right spines; keep left and bottom spines thin, light, and just outside the data where appropriate.
  • Prefer minimal grids: at most subtle y-axis gridlines when they genuinely aid reading values; avoid x-axis grids unless essential.
  • Let titles carry meaning: prefer descriptive titles and direct labels on lines/bars/points; fall back to legends only when direct labels are impractical.
  • Use consistent typography: a clean sans-serif font, modest font sizes, and rare emphasis (bold/italics only when needed).
  • Export at publication quality: save figures at 300 DPI with tight bounding boxes and a white background (SignalPlot’s defaults via apply() and save()).

Never

  • Never rely on high-level styling libraries: avoid seaborn and similar systems for appearance; SignalPlot assumes plain Matplotlib.
  • Never add decorative clutter: skip extra gridlines, borders, background colors, and ornaments that do not improve interpretation.
  • Never use more than one strong accent color: additional emphasis should come from position, annotation, or form, not a rainbow palette.
  • Never distort axes or scales: do not truncate axes to exaggerate effects; bar charts, in particular, should start the y-axis at zero.

Installation

SignalPlot installs like any small Python utility.

pip install signalplot

Documentation

Guides (defaults, saving, axes, labels, interoperability) and the full API live on GitHub Pages, built from the docs/ directory when changes land on the default branch. The same sources build locally with Sphinx (see CONTRIBUTING.md).

Basic Usage

Import SignalPlot once at the start of your script. Create plots with standard Matplotlib calls. SignalPlot applies its defaults automatically.

import matplotlib.pyplot as plt
import signalplot

signalplot.apply()

plt.plot(x, y)
plt.title("Monthly demand by region")
plt.savefig("monthly_demand.png", dpi=300, bbox_inches="tight", facecolor="white")
plt.show()

Intended Audience

SignalPlot serves practitioners who care about analytical integrity. It fits academic work, internal reports, policy analysis, and engineering workflows. It favors repeatability and trust over style experimentation.

Contributing

See CONTRIBUTING.md for environment setup, local checks, and docs builds. Maintainer releases are summarized in RELEASING.md. Priorities and ideas are collected in ROADMAP.md. Notable releases are listed in CHANGELOG.md.

License

MIT License.

Name

SignalPlot reflects the core promise. High signal. Low noise.

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

signalplot-0.1.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

signalplot-0.1.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file signalplot-0.1.3.tar.gz.

File metadata

  • Download URL: signalplot-0.1.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for signalplot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a9872df76c2ceb17954154dba5be32253241fa6448b1637a163d8c30d80e0c85
MD5 b092e2172a421b7e2e0fac2edc3b65dc
BLAKE2b-256 411021ad9dfedd0536829e2cbd147c9675aba0aab913d485112ba6869df54cb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for signalplot-0.1.3.tar.gz:

Publisher: workflow.yml on kylejones200/signalplot

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

File details

Details for the file signalplot-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: signalplot-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for signalplot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f04b3c1ac75a43b0bf18f39b73b4492ccf6364db093c4001704ee7e63fb20dad
MD5 510e08992eca4ebe26604c2d18268816
BLAKE2b-256 06002033197730f1252ce946f74c295cbf3322512ed1e2aca1f91ea326f0f22d

See more details on using hashes here.

Provenance

The following attestation bundles were made for signalplot-0.1.3-py3-none-any.whl:

Publisher: workflow.yml on kylejones200/signalplot

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