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

Skip to content

removed deprecated methods from the axes module. #1568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 16, 2013
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