You are reading an old version of the documentation (v3.1.0). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.lines.segment_hits.html
Version 3.1.0
matplotlib
Fork me on GitHub

matplotlib.lines.segment_hits

matplotlib.lines.segment_hits(cx, cy, x, y, radius)[source]

Return the indices of the segments in the polyline with coordinates (cx, cy) that are within a distance radius of the point (x, y).