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

Skip to content

Commit 238d778

Browse files
committed
Expire parameter renamings
1 parent f1a444e commit 238d778

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
@@ -218,7 +218,6 @@ def get_offset_transform(self):
218218
self._offset_transform._as_mpl_transform(self.axes)
219219
return self._offset_transform
220220

221-
@_api.rename_parameter("3.6", "transOffset", "offset_transform")
222221
def set_offset_transform(self, offset_transform):
223222
"""
224223
Set the artist offset transform.

lib/matplotlib/font_manager.py

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

14891489

1490-
@_api.rename_parameter('3.6', "filepath", "font_filepaths")
14911490
def get_font(font_filepaths, hinting_factor=None):
14921491
"""
14931492
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
@@ -472,7 +472,6 @@ def update_prop(self, legend_handle, orig_handle, legend):
472472
legend_handle.set_clip_box(None)
473473
legend_handle.set_clip_path(None)
474474

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

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

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

0 commit comments

Comments
 (0)