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

Skip to content

make all deprecation warnings be mplDeprecation instances #7717

Closed
@stonebig

Description

@stonebig

I'm trying to get rid of Deprecation Warnings of Matplotlib-2.0.0rc2.

I did this:

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

I still get that:

matplotlib\cbook.py:136: MatplotlibDeprecationWarning: The spectral and spectral_r colormap was deprecated in version 2.0. Use nipy_spectral and nipy_spectral_r instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

matplotlib\__init__.py:914: UserWarning: axes.hold is deprecated. Please remove it from your matplotlibrc and/or style files.
  warnings.warn(self.msg_depr_set % key)

How can I silence them ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions