Skip to content

docs: the name2color example uses a color name that exists - #299

Merged
petercorke merged 2 commits into
mainfrom
bug/name2color-doc-example
Nov 26, 2026
Merged

petercorke merged 2 commits into
mainfrom
bug/name2color-doc-example

Conversation

@petercorke

Copy link
Copy Markdown
Owner

The name2color docstring example name2color("lime green") returned None, because Matplotlib's color names have no spaces, so the page showed a failure that looked like a mistake. The example now uses "limegreen" and keeps the spaced name, with a comment saying it is unknown.

Documentation only.

An AI assistant (Claude Code) wrote this change.

🤖 Generated with Claude Code

name2color("lime green") returned None because Matplotlib's color names
have no spaces, so the example showed a failure by accident.  It now shows
"limegreen", and keeps the spaced name as the example of an unknown name.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit b0b2059 into main Nov 26, 2026
33 of 34 checks passed
@petercorke
petercorke deleted the bug/name2color-doc-example branch November 26, 2026 02:00
@github-actions github-actions Bot mentioned this pull request Nov 26, 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