Skip to content

feat: make Axes color override the color of all three axes - #55

Merged
petercorke merged 1 commit into
jhavl:mainfrom
petercorke:feat/axes-color-override
Oct 11, 2026
Merged

petercorke merged 1 commit into
jhavl:mainfrom
petercorke:feat/axes-color-override

Conversation

@petercorke

Copy link
Copy Markdown
Collaborator

Axes accepted color but never used it when rendering, so Axes(1, color="black") still drew red/green/blue.

  • An explicit color (matplotlib name, (r, g, b) or (r, g, b, a)) now colors all three axes, in both line and arrows=True styles.
  • With no color the axes stay red/green/blue; to_dict() sends "color": null for this, so the renderer can tell "no override" from a color.
  • axes.color = None reverts to red/green/blue.
  • Needs a matching swift change (separate PR); swift's current renderer ignores the override.

Tests added to tests/test_Shape.py; CHANGELOG updated.

🤖 Generated with Claude Code

Axes accepted color but never used it for rendering. Now an explicit
color (matplotlib name, 3- or 4-tuple) colors all axes, in both line and
arrow styles. With no color the axes remain red/green/blue, signalled to
the renderer as color=None in to_dict(). Assigning None to Axes.color
reverts to red/green/blue.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@petercorke
petercorke merged commit 195bd92 into jhavl:main Oct 11, 2026
18 checks passed
@petercorke petercorke mentioned this pull request Oct 12, 2026
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