Skip to content

Adds warnings, fix titles for vrange for RGB images - #51

Merged
billbrod merged 4 commits into
mainfrom
rgb_plotting
Sep 1, 2026
Merged

Adds warnings, fix titles for vrange for RGB images #51
billbrod merged 4 commits into
mainfrom
rgb_plotting

Conversation

@billbrod

@billbrod billbrod commented Sep 1, 2026

Copy link
Copy Markdown
Member

Matplotlib imshow ignores vmin, vmax, and colormap for RGB images, always plotting them with range [0, 1] (for floats) or [0, 255] (for ints). This PR makes sure that the range titles reflect that and raises an informative warning if it the user has changed vrange from the default value.

See plenoptic-org/plenoptic#479 for more details.

  • Updates imshow and animshow as above
  • Adds tests for the above behavior for both
  • Updates docstrings to reflect above.
  • Removes unnecessary imports, semicolons, and variable assignments in unitTests.py

@billbrod
billbrod merged commit 8eb0603 into main Sep 1, 2026
83 of 85 checks passed
@billbrod
billbrod deleted the rgb_plotting branch September 1, 2026 21:17
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