Skip to content

ContributeFix AttributeError in C1_W3_Lab01#62

Merged
greyhatguy007 merged 2 commits into
greyhatguy007:mainfrom
EggXiaolu:contribute
Dec 28, 2025
Merged

ContributeFix AttributeError in C1_W3_Lab01#62
greyhatguy007 merged 2 commits into
greyhatguy007:mainfrom
EggXiaolu:contribute

Conversation

@EggXiaolu
Copy link
Copy Markdown
Contributor

Problem

Due to a recent matplotlib update, the CheckButtons object no longer includes the rectangles attribute, causing:

AttributeError: 'CheckButtons' object has no attribute 'rectangles'

Fix

  • Kept the original support for rectangles;
  • Added compatibility for the new boxes attribute;
  • Used conditional checks to handle both cases dynamically;

Fix issues: #61

@greyhatguy007 greyhatguy007 merged commit d5c95ff into greyhatguy007:main Dec 28, 2025
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.

2 participants