Skip to content

Commit 536582f

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

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
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

+4-5
Original file line numberDiff line numberDiff line change
@@ -929,12 +929,12 @@ 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()]
934-
for p in self.get_paths()]))
935-
allkinds = _api.deprecated("3.8", pending=True)(property(lambda self: [
934+
for p in self.get_paths()])
935+
allkinds = property(lambda self: [
936936
[subp.codes for subp in p._iter_connected_components()]
937-
for p in self.get_paths()]))
937+
for p in self.get_paths()])
938938
tcolors = _api.deprecated("3.8")(property(lambda self: [
939939
(tuple(rgba),) for rgba in self.to_rgba(self.cvalues, self.alpha)]))
940940
tlinewidths = _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)