Skip to content

馃帹 assets: add a logo, one plotting call dispatched to three backends - #39

Merged
nstarman merged 1 commit into
mainfrom
docs/logo
Oct 4, 2026
Merged

nstarman merged 1 commit into
mainfrom
docs/logo

Conversation

@nstarman

@nstarman nstarman commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

plotting_backends had no logo. This gives it one: a dot, the plotting call, branching to three small charts. Each chart shows the same plot, drawn by a different backend in its own colour (teal, blue and purple), in GalacticDynamics' navy.

docs/_static/make_logo.py writes it:

uv run docs/_static/make_logo.py                     # docs/_static/favicon.svg
uv run docs/_static/make_logo.py --size 2048 big.png # a PNG, at any size
  • SVG by default: 1 KB and sharp at any size. The script writes the SVG text directly, so the default needs no dependencies.
  • Geometry: the backends' colours, the call, the charts' placement and the plot they share are constants at the top of the script. Adding a backend is one more colour and one more chart position.
  • PNG on request: rendered with resvg-py, declared in the script's PEP 723 header, so uv run fetches it.
  • Location: docs/_static/, as in the other GalacticDynamics packages, ready for when plotting_backends has docs. Nothing references it yet.

Checked:

  • The pre-commit hooks pass on the new files. The mypy hook is limited to src/ and tests/, so it doesn't apply.
  • Re-running the script reproduces the file, and it stays readable at 32 px.

Part of giving the GalacticDynamics packages scripted logos.

馃 Generated with Claude Code

plotting_backends had no logo. It now has a dot, the plotting call,
branching to three small charts, each the same plot drawn by a different
backend in its own colour. docs/_static/make_logo.py writes it as an SVG
(1 KB), and as a PNG at any size on request:

    uv run docs/_static/make_logo.py --size 2048 big.png

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nstarman nstarman added this to the v0.2.0 milestone Oct 4, 2026
@nstarman
nstarman merged commit f1eec8c into main Oct 4, 2026
16 checks passed
@nstarman
nstarman deleted the docs/logo branch October 4, 2026 01:01
nstarman added a commit to nstarman/nstarman.github.io that referenced this pull request Oct 4, 2026
Its logo, mirrored from GalacticDynamics/plotting_backends's docs/_static/favicon.svg
(GalacticDynamics/plotting_backends#39) by scripts/sync-software-figures.mjs: drawn 512 px wide and
saved as WebP at quality 85.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant