MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _point_in_data_domain

Method _point_in_data_domain

lib/matplotlib/axes/_base.py:2480–2491  ·  view source on GitHub ↗

Check if the data point (x, y) is within the valid domain of the axes scales. Returns False if the point is outside the data range (e.g. negative coordinates with a log scale).

(self, x, y)

Source from the content-addressed store, hash-verified

2478 return txt
2479
2480 def _point_in_data_domain(self, x, y):
2481 """
2482 Check if the data point (x, y) is within the valid domain of the axes
2483 scales.
2484
2485 Returns False if the point is outside the data range
2486 (e.g. negative coordinates with a log scale).
2487 """
2488 for val, axis in zip([x, y], self._axis_map.values()):
2489 if not axis._scale.val_in_range(val):
2490 return False
2491 return True
2492
2493 def _update_line_limits(self, line):
2494 """

Callers 1

get_tightbboxMethod · 0.80

Calls 2

valuesMethod · 0.80
val_in_rangeMethod · 0.45

Tested by

no test coverage detected