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

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use the new matplotlib deprecation warning
  • Loading branch information
NelleV committed Jan 14, 2013
commit e0334274784b82726c9f3477625863fd1523d061
4 changes: 3 additions & 1 deletion lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import matplotlib
rcParams = matplotlib.rcParams

from matplotlib import MatplotlibDeprecationWarning as MDeprecation

import matplotlib.artist as martist
from matplotlib.artist import allow_rasterization
import matplotlib.axis as maxis
Expand Down Expand Up @@ -1051,7 +1053,7 @@ def set_aspect(self, aspect, adjustable=None, anchor=None):
the option 'normal' for aspect is deprecated. Use 'auto' instead.
"""
if aspect == 'normal':
raise DeprecationWarning("Use 'auto' instead of 'normal' for "
raise MDeprecation("Use 'auto' instead of 'normal' for "
"aspect. Will be removed in 1.4.x")
self._aspect = 'auto'

Expand Down