MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / arrow

Function arrow

experiments/human_eval/draw_error_analysis_single_case.py:67–77  ·  view source on GitHub ↗
(page: fitz.Page, x1: float, y: float, x2: float)

Source from the content-addressed store, hash-verified

65
66
67def arrow(page: fitz.Page, x1: float, y: float, x2: float) -> None:
68 page.draw_line(fitz.Point(x1, y), fitz.Point(x2, y), color=GRAY, width=1.8)
69 page.draw_polyline(
70 [
71 fitz.Point(x2 - 5, y - 4),
72 fitz.Point(x2, y),
73 fitz.Point(x2 - 5, y + 4),
74 ],
75 color=GRAY,
76 width=1.8,
77 )
78
79
80def draw_status(page: fitz.Page, x: float, y: float, label: str, value: str, color) -> None:

Callers 1

draw_figureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected