|
37 | 37 | import matplotlib.ticker as mticker |
38 | 38 | import matplotlib.transforms as mtransforms |
39 | 39 | import matplotlib.tri as mtri |
40 | | -from matplotlib import MatplotlibDeprecationWarning as mDeprecation |
| 40 | +from matplotlib import MatplotlibDeprecationWarning as mplDeprecation |
41 | 41 | from matplotlib.container import BarContainer, ErrorbarContainer, StemContainer |
42 | 42 |
|
43 | 43 | iterable = cbook.iterable |
@@ -1376,11 +1376,11 @@ def get_child_artists(self): |
1376 | 1376 |
|
1377 | 1377 | .. deprecated:: 0.98 |
1378 | 1378 | """ |
1379 | | - raise mDeprecation('Use get_children instead') |
| 1379 | + raise mplDeprecation('Use get_children instead') |
1380 | 1380 |
|
1381 | 1381 | def get_frame(self): |
1382 | 1382 | """Return the axes Rectangle frame""" |
1383 | | - warnings.warn('use ax.patch instead', mDeprecation) |
| 1383 | + warnings.warn('use ax.patch instead', mplDeprecation) |
1384 | 1384 | return self.patch |
1385 | 1385 |
|
1386 | 1386 | def get_legend(self): |
@@ -3135,13 +3135,13 @@ def connect(self, s, func): |
3135 | 3135 | disconnect to disconnect from the axes event |
3136 | 3136 |
|
3137 | 3137 | """ |
3138 | | - raise mDeprecation('use the callbacks CallbackRegistry instance ' |
3139 | | - 'instead') |
| 3138 | + raise mplDeprecation('use the callbacks CallbackRegistry instance ' |
| 3139 | + 'instead') |
3140 | 3140 |
|
3141 | 3141 | def disconnect(self, cid): |
3142 | 3142 | """disconnect from the Axes event.""" |
3143 | | - raise mDeprecation('use the callbacks CallbackRegistry instance ' |
3144 | | - 'instead') |
| 3143 | + raise mplDeprecation('use the callbacks CallbackRegistry instance ' |
| 3144 | + 'instead') |
3145 | 3145 |
|
3146 | 3146 | def get_children(self): |
3147 | 3147 | """return a list of child artists""" |
@@ -3192,8 +3192,8 @@ def pick(self, *args): |
3192 | 3192 | the artist and the artist has picker set |
3193 | 3193 | """ |
3194 | 3194 | if len(args) > 1: |
3195 | | - raise mDeprecation('New pick API implemented -- ' |
3196 | | - 'see API_CHANGES in the src distribution') |
| 3195 | + raise mplDeprecation('New pick API implemented -- ' |
| 3196 | + 'see API_CHANGES in the src distribution') |
3197 | 3197 | martist.Artist.pick(self, args[0]) |
3198 | 3198 |
|
3199 | 3199 | ### Labelling |
@@ -3691,9 +3691,9 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid', |
3691 | 3691 | .. plot:: mpl_examples/pylab_examples/hline_demo.py |
3692 | 3692 | """ |
3693 | 3693 | if kwargs.get('fmt') is not None: |
3694 | | - raise mDeprecation('hlines now uses a ' |
3695 | | - 'collections.LineCollection and not a ' |
3696 | | - 'list of Line2D to draw; see API_CHANGES') |
| 3694 | + raise mplDeprecation('hlines now uses a ' |
| 3695 | + 'collections.LineCollection and not a ' |
| 3696 | + 'list of Line2D to draw; see API_CHANGES') |
3697 | 3697 |
|
3698 | 3698 | # We do the conversion first since not all unitized data is uniform |
3699 | 3699 | # process the unit information |
@@ -3773,9 +3773,9 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid', |
3773 | 3773 | """ |
3774 | 3774 |
|
3775 | 3775 | if kwargs.get('fmt') is not None: |
3776 | | - raise mDeprecation('vlines now uses a ' |
3777 | | - 'collections.LineCollection and not a ' |
3778 | | - 'list of Line2D to draw; see API_CHANGES') |
| 3776 | + raise mplDeprecation('vlines now uses a ' |
| 3777 | + 'collections.LineCollection and not a ' |
| 3778 | + 'list of Line2D to draw; see API_CHANGES') |
3779 | 3779 |
|
3780 | 3780 | self._process_unit_info(xdata=x, ydata=[ymin, ymax], kwargs=kwargs) |
3781 | 3781 |
|
@@ -6074,7 +6074,7 @@ def scatter(self, x, y, s=20, c='b', marker='o', cmap=None, norm=None, |
6074 | 6074 | edgecolors = 'none' |
6075 | 6075 | warnings.warn( |
6076 | 6076 | '''replace "faceted=False" with "edgecolors='none'"''', |
6077 | | - mDeprecation) # 2008/04/18 |
| 6077 | + mplDeprecation) # 2008/04/18 |
6078 | 6078 |
|
6079 | 6079 | # to be API compatible |
6080 | 6080 | if marker is None and not (verts is None): |
@@ -8002,7 +8002,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None, |
8002 | 8002 | "orientation kwarg %s is not recognized" % orientation) |
8003 | 8003 |
|
8004 | 8004 | if kwargs.get('width') is not None: |
8005 | | - raise mDeprecation( |
| 8005 | + raise mplDeprecation( |
8006 | 8006 | 'hist now uses the rwidth to give relative width ' |
8007 | 8007 | 'and not absolute width') |
8008 | 8008 |
|
@@ -8735,7 +8735,7 @@ def spy(self, Z, precision=0, marker=None, markersize=None, |
8735 | 8735 | """ |
8736 | 8736 | if precision is None: |
8737 | 8737 | precision = 0 |
8738 | | - warnings.warn("Use precision=0 instead of None", mDeprecation) |
| 8738 | + warnings.warn("Use precision=0 instead of None", mplDeprecation) |
8739 | 8739 | # 2008/10/03 |
8740 | 8740 | if marker is None and markersize is None and hasattr(Z, 'tocoo'): |
8741 | 8741 | marker = 's' |
|
0 commit comments