Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@flokli
Copy link

@flokli flokli commented Apr 28, 2025

This code was responsible from hiding deprecation warnings if a key gets unused, but it causes more harm than good:

mpl did refactor their deprecation system, and the code simply failed as the old mpl.cbook.MatplotlibDeprecationWarning didn't exist anymore.

Instead of going the approach of #39 or #43 again and adjusting to the change, simply drop the deprecation warning hiding alltogether.

It'll show when july starts using deprecated keys, so they can be updated.

Also use mpl.rcParams[key] = value directly and drop the ConfigDict logic, as it's unneeded.

Closes #39.
Closes #43.

This code was responsible from hiding deprecation warnings if a key gets
unused, but it causes more harm than good:

mpl did refactor their deprecation system, and the code simply failed as
the old mpl.cbook.MatplotlibDeprecationWarning didn't exist anymore.

Instead of going the approach of e-hulten#39 or e-hulten#43 again and adjusting to the
change, simply drop the deprecation warning hiding alltogether.

It'll show when july starts using deprecated keys, so they can be
updated.

Also use `mpl.rcParams[key] = value` directly and drop the ConfigDict
logic, as it's unneeded.

Closes e-hulten#39.
Closes e-hulten#43.
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