Skip to content

MRG, MAINT: Updates for mpl deprecations#9550

Merged
agramfort merged 1 commit intomne-tools:mainfrom
larsoner:ci
Jul 10, 2021
Merged

MRG, MAINT: Updates for mpl deprecations#9550
agramfort merged 1 commit intomne-tools:mainfrom
larsoner:ci

Conversation

@larsoner
Copy link
Copy Markdown
Member

@larsoner larsoner commented Jul 9, 2021

Running the latest version of matplotlib I hit some errors in local testing. This fixes them.

@larsoner larsoner changed the title MAINT: Updates for mpl deprecations MRG, MAINT: Updates for mpl deprecations Jul 9, 2021
@larsoner larsoner requested a review from drammock July 9, 2021 18:42
Copy link
Copy Markdown
Member

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look reasonable, just one tiny request. I'd vote for merging this sooner, rather than waiting for matplotlib/matplotlib#20618 to get fixed.

color = tp.get_color()
try:
color = tp.get_edgecolors()
except AttributeError: # old MPL
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we mention in the comment which version is the critical one? will make it easier to remove the try/except later as our min version changes.

@agramfort agramfort merged commit 0156284 into mne-tools:main Jul 10, 2021
@agramfort
Copy link
Copy Markdown
Member

thx @larsoner

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.

3 participants