Closed
Description
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 ?