Skip to content

Commit d68f01a

Browse files
committed
MNT: revert contour deprecations
1 parent e394940 commit d68f01a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Deprecations removed in ``contour``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
``contour.allsegs``, ``contour.allkinds``, and ``contour.find_nearest_contour`` are no
5+
longer marked for deprecation.

lib/matplotlib/contour.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -929,10 +929,10 @@ def __init__(self, ax, *args,
929929
", ".join(map(repr, kwargs))
930930
)
931931

932-
allsegs = _api.deprecated("3.8", pending=True)(property(lambda self: [
932+
allsegs = (property(lambda self: [
933933
[subp.vertices for subp in p._iter_connected_components()]
934934
for p in self.get_paths()]))
935-
allkinds = _api.deprecated("3.8", pending=True)(property(lambda self: [
935+
allkinds = (property(lambda self: [
936936
[subp.codes for subp in p._iter_connected_components()]
937937
for p in self.get_paths()]))
938938
tcolors = _api.deprecated("3.8")(property(lambda self: [
@@ -1388,7 +1388,6 @@ def _find_nearest_contour(self, xy, indices=None):
13881388

13891389
return idx_level_min, idx_vtx_min, proj_min
13901390

1391-
@_api.deprecated("3.8")
13921391
def find_nearest_contour(self, x, y, indices=None, pixel=True):
13931392
"""
13941393
Find the point in the contour plot that is closest to ``(x, y)``.

0 commit comments

Comments
 (0)