MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / mark_segment

Function mark_segment

numericals.py:1033–1038  ·  view source on GitHub ↗
(
    ax: matplotlib.axes.Axes, p1: Point, p2: Point, color: Any, alpha: float
)

Source from the content-addressed store, hash-verified

1031
1032
1033def mark_segment(
1034 ax: matplotlib.axes.Axes, p1: Point, p2: Point, color: Any, alpha: float
1035) -> None:
1036 _ = alpha
1037 x, y = (p1.x + p2.x) / 2, (p1.y + p2.y) / 2
1038 ax.scatter(x, y, color=color, alpha=1.0, marker='o', s=50)
1039
1040
1041def highlight_angle(

Callers 1

_drawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected