Skip to content

Fix segmented plot test on older Matplotlib - #929

Merged
tompollard merged 1 commit into
mainfrom
fix-segmented-plot-matplotlib-test
Dec 4, 2026
Merged

tompollard merged 1 commit into
mainfrom
fix-segmented-plot-matplotlib-test

Conversation

@tompollard

Copy link
Copy Markdown
Member

Summary

Fix the minimum-dependency CI failure from #928. Older Matplotlib versions represent axvspan shading as a Polygon, while newer versions use a Rectangle. The test asserted the rectangle-specific get_x() method. Removing that assertion keeps the test focused on the masked digital values; another plotting test still checks that a gap is shaded.

Verification

  • tests/test_plot.py: 27 passed locally.
  • Ruff check passed.

@tompollard
tompollard merged commit a7d6acc into main Dec 4, 2026
19 checks passed
@tompollard
tompollard deleted the fix-segmented-plot-matplotlib-test branch December 4, 2026 21:59
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