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

Skip to content

Commit bb9daee

Browse files
Use _axis_map
1 parent d1bd978 commit bb9daee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ def _point_in_data_domain(self, x, y):
24512451
Returns False if the point is outside the data range
24522452
(e.g. negative coordinates with a log scale).
24532453
"""
2454-
for val, axis in [(x, self.xaxis), (y, self.yaxis)]:
2454+
for val, axis in zip([x, y], self._axis_map.values()):
24552455
vmin, vmax = axis.limit_range_for_scale(val, val)
24562456
if vmin != val or vmax != val:
24572457
return False

0 commit comments

Comments
 (0)