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

Skip to content

Commit 6feeec1

Browse files
committed
axes: modify _point_in_data_domain to use the new Axis.val_in_range
1 parent e3dc7b7 commit 6feeec1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,8 +2479,7 @@ def _point_in_data_domain(self, x, y):
24792479
(e.g. negative coordinates with a log scale).
24802480
"""
24812481
for val, axis in zip([x, y], self._axis_map.values()):
2482-
vmin, vmax = axis.limit_range_for_scale(val, val)
2483-
if vmin != val or vmax != val:
2482+
if not axis._scale.val_in_range(val):
24842483
return False
24852484
return True
24862485

0 commit comments

Comments
 (0)