10000 Remove deprecated functions in matplotlib.path. · matplotlib/matplotlib@01c314d · GitHub
[go: up one dir, main page]

Skip to content

Commit 01c314d

Browse files
committed
Remove deprecated functions in matplotlib.path.
1 parent 268420b commit 01c314d

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

doc/api/api_changes/code_removal.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ removed.
2222
The ``ArtistInspector.findobj`` method, which was never working due to the lack
2323
of a ``get_children`` method, has been removed.
2424

25+
The deprecated ``point_in_path``, ``get_path_extents``,
26+
``point_in_path_collection``, ``path_intersects_path``,
27+
``convert_path_to_polygons``, ``cleanup_path`` and ``clip_path_to_rect``
28+
functions in the ``matplotlib.path`` module have been removed. Their
29+
functionality remains exposed as methods on the ``Path`` class.
30+
2531

2632
`Axes.set_aspect("normal")`
2733
---------------------------

lib/matplotlib/path.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,26 +1025,3 @@ def get_paths_extents(paths, transforms=[]):
10251025
raise ValueError("No paths provided")
10261026
return Bbox.from_extents(*_path.get_path_collection_extents(
10271027
Affine2D(), paths, transforms, [], Affine2D()))
1028-
1029-
1030-
def _define_deprecated_functions(ns):
1031-
from .cbook import deprecated
1032-
1033-
# The C++ functions are not meant to be used directly.
1034-
# Users should use the more pythonic wrappers in the Path
1035-
# class instead.
1036-
for func, alternative in [
1037-
('point_in_path', 'path.Path.contains_point'),
1038-
('get_path_extents', 'path.Path.get_extents'),
1039-
('point_in_path_collection', 'collection.Collection.contains'),
1040-
('path_in_path', 'path.Path.contains_path'),
1041-
('path_intersects_path', 'path.Path.intersects_path'),
1042-
('convert_path_to_polygons', 'path.Path.to_polygons'),
1043-
('cleanup_path', 'path.Path.cleaned'),
1044-
('points_in_path', 'path.Path.contains_points'),
1045-
('clip_path_to_rect', 'path.Path.clip_to_bbox')]:
1046-
ns[func] = deprecated(
1047-
since='1.3', alternative=alternative)(getattr(_path, func))
1048-
1049-
1050-
_define_deprecated_functions(locals())

0 commit comments

Comments
 (0)
0