Skip to content

Commit 6d03949

Browse files
committed
refactor: remove 'val_in_range' from axis.py and the corressponding pyi file
1 parent 59bd52b commit 6d03949

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

lib/matplotlib/axis.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -824,13 +824,6 @@ def limit_range_for_scale(self, vmin, vmax):
824824
current scale.
825825
"""
826826
return self._scale.limit_range_for_scale(vmin, vmax, self.get_minpos())
827-
828-
def val_in_range(self, val):
829-
"""
830-
Return `True` if the value(s) lie within the domain supported by the
831-
current scale.
832-
"""
833-
return self._scale.val_in_range(val)
834827

835828
def _get_autoscale_on(self):
836829
"""Return whether this Axis is autoscaled."""

lib/matplotlib/axis.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ class Axis(martist.Artist):
144144
def limit_range_for_scale(
145145
self, vmin: float, vmax: float
146146
) -> tuple[float, float]: ...
147-
def val_in_range(self, val: ArrayLike) -> bool | np.ndarray: ...
148147
def get_children(self) -> list[martist.Artist]: ...
149148
# TODO units
150149
converter: Any

0 commit comments

Comments
 (0)