GeezerVison is showing github.com — Use namespaced "matplotlib:coolwarm" to silence cmap ambiguity warning by hmaarrfk · Pull Request #1079 · fastplotlib/fastplotlib
Conversation
hmaarrfk
commented
Sep 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Hey @kushalkolar hopefully this one liner is ok with you!
This avoids a warning like:
WARNING: The name 'coolwarm' is an alias for 'matplotlib:coolwarm', but is also available as: 'paraview:coolwarm'.
To silence this warning, use a fully namespaced name.
This PR was written by Mark's AI agent (Claude Code). Mark has not yet reviewed this PR.
Reviewed it now!
More stuff from claude
Summary
"coolwarm" is ambiguous in the cmap package's catalog (present in both the matplotlib and paraview namespaces), so cmap.Colormap("coolwarm") emits the ambiguity warning above.
- Use the fully namespaced
"matplotlib:coolwarm" in COLORMAPS, matching the pattern already used for other ambiguous names in that list (tol:, matlab:, vispy:, gnuplot:, yorick:).
- This namespace syntax is supported by
cmap>=0.1.3, which is already fastplotlib's declared minimum dependency, so no dependency bump is needed.
Test plan
- Confirmed the warning no longer fires when importing
fastplotlib.utils.functions after the change.
- Confirmed
"coolwarm" was not referenced as a literal string anywhere else in the codebase.
https://claude.ai/code/session_01XccZFAE1DAEaEx7LBhXE5W
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
<details><summary>Claude's draft</summary>
`cmap.Colormap("coolwarm")` is ambiguous because "coolwarm" exists in
both the matplotlib and paraview catalogs, so `cmap` emits:
WARNING: The name 'coolwarm' is an alias for 'matplotlib:coolwarm',
but is also available as: 'paraview:coolwarm'.
To silence this warning, use a fully namespaced name.
Use the fully namespaced `"matplotlib:coolwarm"` in the `COLORMAPS`
list, matching the pattern already used for other ambiguous names in
this list (`tol:`, `matlab:`, `vispy:`, `gnuplot:`, `yorick:`). This is
supported by `cmap>=0.1.3`, which is already fastplotlib's declared
minimum, so no dependency bump is needed.
Resume this Claude session:
```
cd /Users/mark/git/pygfx/fastplotlib
claude --resume 4d91ae6a-7744-4d7e-90b3-d8c929fee89f
```
</details>
Claude-Session: https://claude.ai/code/session_01XccZFAE1DAEaEx7LBhXE5W
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
clewis7
Awaiting requested review from clewis7
clewis7 is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|