GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use namespaced "matplotlib:coolwarm" to silence cmap ambiguity warning by hmaarrfk · Pull Request #1079 · fastplotlib/fastplotlib

Conversation

@hmaarrfk

@hmaarrfk hmaarrfk commented Sep 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@hmaarrfk
Use namespaced "matplotlib:coolwarm" to silence cmap ambiguity warning
27018a8
<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
hmaarrfk marked this pull request as ready for review September 10, 2026 16:34
@hmaarrfk
hmaarrfk requested review from clewis7 and kushalkolar as code owners September 10, 2026 16:34
kushalkolar
kushalkolar approved these changes Sep 11, 2026
View reviewed changes

@kushalkolar kushalkolar left a comment

Copy link
Copy Markdown
Member

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.

LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kushalkolar
kushalkolar merged commit 0117565 into fastplotlib:main Sep 11, 2026
25 of 41 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kushalkolar kushalkolar kushalkolar approved these changes
@clewis7 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

Labels

None yet

Projects

None yet

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.

2 participants

@hmaarrfk @kushalkolar
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.