File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 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):
207207
208208 ACCEPTS: an :class:`~matplotlib.axes.Axes` instance
209209 """
210- warnings .warn (_get_axes_msg , mplDeprecation , stacklevel = 1 )
210+ warnings .warn (_get_axes_msg .format ('set_axes' ), mplDeprecation ,
211+ stacklevel = 1 )
211212 self .axes = axes
212213
213214 def get_axes (self ):
@@ -218,7 +219,8 @@ def get_axes(self):
218219 This has been deprecated in mpl 1.5, please use the
219220 axes property. Will be removed in 1.7 or 2.0.
220221 """
221- warnings .warn (_get_axes_msg , mplDeprecation , stacklevel = 1 )
222+ warnings .warn (_get_axes_msg .format ('get_axes' ), mplDeprecation ,
223+ stacklevel = 1 )
222224 return self .axes
223225
224226 @property
@@ -1480,5 +1482,5 @@ def kwdoc(a):
14801482
14811483docstring .interpd .update (Artist = kwdoc (Artist ))
14821484
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
14841486axes property. A removal date has not been set."""
You can’t perform that action at this time.
0 commit comments