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

Skip to content

Commit 0e799a8

Browse files
committed
26865 removing deprecations to patches.py and axislines.py
1 parent ff552f4 commit 0e799a8

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
``passthru_pt``
2+
~~~~~~~~~~~~~~~
3+
4+
This attribute of ``AxisArtistHelper``\s has been removed.
5+
6+
``SimpleEvent``
7+
~~~~~~~~~~~~~~~
8+
9+
The ``SimpleEvent`` nested class (previously accessible via the public
10+
subclasses of ``ConnectionStyle._Base``, such as `.ConnectionStyle.Arc`, has
11+
been removed.

lib/matplotlib/patches.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,11 +2708,6 @@ class _Base:
27082708
helper methods.
27092709
"""
27102710

2711-
@_api.deprecated("3.7")
2712-
class SimpleEvent:
2713-
def __init__(self, xy):
2714-
self.x, self.y = xy
2715-
27162711
def _in_patch(self, patch):
27172712
"""
27182713
Return a predicate function testing whether a point *xy* is

lib/matplotlib/patches.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ class BoxStyle(_Style):
455455

456456
class ConnectionStyle(_Style):
457457
class _Base(ConnectionStyle):
458-
class SimpleEvent:
459-
def __init__(self, xy: tuple[float, float]) -> None: ...
460458

461459
def __call__(
462460
self,

lib/mpl_toolkits/axisartist/axislines.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ def _to_xy(self, values, const):
112112
class _FixedAxisArtistHelperBase(_AxisArtistHelperBase):
113113
"""Helper class for a fixed (in the axes coordinate) axis."""
114114

115-
passthru_pt = _api.deprecated("3.7")(property(
116-
lambda self: {"left": (0, 0), "right": (1, 0),
117-
"bottom": (0, 0), "top": (0, 1)}[self._loc]))
118-
119115
def __init__(self, loc, nth_coord=None):
120116
"""``nth_coord = 0``: x-axis; ``nth_coord = 1``: y-axis."""
121117
self.nth_coord = (

0 commit comments

Comments
 (0)