Skip to content

Commit 1a907a6

Browse files
committed
Expire parameter renamings
1 parent 350735e commit 1a907a6

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

lib/matplotlib/collections.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ def get_offset_transform(self):
222222
self._offset_transform._as_mpl_transform(self.axes)
223223
return self._offset_transform
224224

225-
@_api.rename_parameter("3.6", "transOffset", "offset_transform")
226225
def set_offset_transform(self, offset_transform):
227226
"""
228227
Set the artist offset transform.

lib/matplotlib/font_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,6 @@ def _cached_realpath(path):
15161516
return os.path.realpath(path)
15171517

15181518

1519-
@_api.rename_parameter('3.6', "filepath", "font_filepaths")
15201519
def get_font(font_filepaths, hinting_factor=None):
15211520
"""
15221521
Get an `.ft2font.FT2Font` object given a list of file paths.

lib/matplotlib/legend_handler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def legend_artist(self, legend, orig_handle, fontsize, handlebox)
3131

3232
import numpy as np
3333

34-
from matplotlib import _api, cbook
34+
from matplotlib import cbook
3535
from matplotlib.lines import Line2D
3636
from matplotlib.patches import Rectangle
3737
import matplotlib.collections as mcoll
@@ -471,7 +471,6 @@ def update_prop(self, legend_handle, orig_handle, legend):
471471
legend_handle.set_clip_box(None)
472472
legend_handle.set_clip_path(None)
473473

474-
@_api.rename_parameter("3.6", "transOffset", "offset_transform")
475474
def create_collection(self, orig_handle, sizes, offsets, offset_transform):
476475
return type(orig_handle)(
477476
orig_handle.get_numsides(),
@@ -504,7 +503,6 @@ def create_artists(self, legend, orig_handle,
504503
class HandlerPathCollection(HandlerRegularPolyCollection):
505504
r"""Handler for `.PathCollection`\s, which are used by `~.Axes.scatter`."""
506505

507-
@_api.rename_parameter("3.6", "transOffset", "offset_transform")
508506
def create_collection(self, orig_handle, sizes, offsets, offset_transform):
509507
return type(orig_handle)(
510508
[orig_handle.get_paths()[0]], sizes=sizes,
@@ -515,7 +513,6 @@ def create_collection(self, orig_handle, sizes, offsets, offset_transform):
515513
class HandlerCircleCollection(HandlerRegularPolyCollection):
516514
r"""Handler for `.CircleCollection`\s."""
517515

518-
@_api.rename_parameter("3.6", "transOffset", "offset_transform")
519516
def create_collection(self, orig_handle, sizes, offsets, offset_transform):
520517
return type(orig_handle)(
521518
sizes, offsets=offsets, offset_transform=offset_transform)

0 commit comments

Comments
 (0)