Use namespaced "matplotlib:coolwarm" to silence cmap ambiguity warning - #1079
Merged
kushalkolar merged 1 commit intoSep 11, 2026
Merged
Conversation
<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
hmaarrfk
marked this pull request as ready for review
September 10, 2026 16:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hey @kushalkolar hopefully this one liner is ok with you!
This avoids a warning like:
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 thecmappackage's catalog (present in both thematplotlibandparaviewnamespaces), socmap.Colormap("coolwarm")emits the ambiguity warning above."matplotlib:coolwarm"inCOLORMAPS, matching the pattern already used for other ambiguous names in that list (tol:,matlab:,vispy:,gnuplot:,yorick:).cmap>=0.1.3, which is already fastplotlib's declared minimum dependency, so no dependency bump is needed.Test plan
fastplotlib.utils.functionsafter the change."coolwarm"was not referenced as a literal string anywhere else in the codebase.https://claude.ai/code/session_01XccZFAE1DAEaEx7LBhXE5W