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)
| 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 | """ |
no test coverage detected