(lines: Iterable[Line2D])
| 483 | |
| 484 | |
| 485 | def get_xlim(lines: Iterable[Line2D]) -> tuple[float, float]: |
| 486 | left, right = np.inf, -np.inf |
| 487 | for line in lines: |
| 488 | x = line.get_xdata(orig=False) |
| 489 | left = min(np.nanmin(x), left) |
| 490 | right = max(np.nanmax(x), right) |
| 491 | return left, right |
no test coverage detected