File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,8 @@ def set_axes(self, axes):
207
207
208
208
ACCEPTS: an :class:`~matplotlib.axes.Axes` instance
209
209
"""
210
- warnings .warn (_get_axes_msg , mplDeprecation , stacklevel = 1 )
210
+ warnings .warn (_get_axes_msg .format ('set_axes' ), mplDeprecation ,
211
+ stacklevel = 1 )
211
212
self .axes = axes
212
213
213
214
def get_axes (self ):
@@ -218,7 +219,8 @@ def get_axes(self):
218
219
This has been deprecated in mpl 1.5, please use the
219
220
axes property. Will be removed in 1.7 or 2.0.
220
221
"""
221
- warnings .warn (_get_axes_msg , mplDeprecation , stacklevel = 1 )
222
+ warnings .warn (_get_axes_msg .format ('get_axes' ), mplDeprecation ,
223
+ stacklevel = 1 )
222
224
return self .axes
223
225
224
226
@property
@@ -1480,5 +1482,5 @@ def kwdoc(a):
1480
1482
1481
1483
docstring .interpd .update (Artist = kwdoc (Artist ))
1482
1484
1483
- _get_axes_msg = """This has been deprecated in mpl 1.5, please use the
1485
+ _get_axes_msg = """{} has been deprecated in mpl 1.5, please use the
1484
1486
axes property. A removal date has not been set."""
You can’t perform that action at this time.
0 commit comments