Skip to content

Add RGB support to plot_array#243

Merged
Jammy2211 merged 1 commit intomainfrom
feature/rgb_refactor
Mar 27, 2026
Merged

Add RGB support to plot_array#243
Jammy2211 merged 1 commit intomainfrom
feature/rgb_refactor

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • plot_array detects 3- or 4-channel (RGB/RGBA) arrays and skips colormap, norm, and colorbar, which are not applicable to RGB images
  • Adds test__plot_array_rgb unit test covering the new code path via the existing array_2d_rgb_7x7 fixture

Test plan

  • test_autoarray/structures/plot/test_structure_plotters.py::test__plot_array_rgb passes
  • Full test_structure_plotters.py suite passes (6/6)

🤖 Generated with Claude Code

`plot_array` now detects 3- or 4-channel arrays and skips colormap,
norm, and colorbar — all of which are inappropriate for RGB images.
A `test__plot_array_rgb` unit test covers the new code path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 656814a into main Mar 27, 2026
0 of 8 checks passed
@Jammy2211 Jammy2211 deleted the feature/rgb_refactor branch March 27, 2026 12:12
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