Skip to content

Matplotlib deprecation warnings #464

Description

@DanShort12

Hi all,

As well as the rcParams overwrite, mentioned in #460, we see quite a few MatplotlibDeprecationWarning messages when using matplotlib 3.1.2. These stem from lines like below (of which I think there are 5 occurrences):

curr_rc = dict(matplotlib.rcParams)

Where Python will access all of the rcParams in that copy, and so matplotlib will think that any deprecated values are being read. It is possible to copy the rcParams without hitting this warning by calling as below:

curr_rc = matplotlib.rcParams.copy()

That method for getting around this is borrowed from matplotlib/matplotlib#15781.

Apologies, I see the fix for #460 is already in PR #461, I should have probably bundled this observation in with the last issue that I raised.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions