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

Function panel_position

experiments/human_eval/draw_error_analysis_figure.py:213–218  ·  view source on GitHub ↗
(idx: int)

Source from the content-addressed store, hash-verified

211
212
213def panel_position(idx: int) -> tuple[int, int]:
214 row = idx // 2
215 col = idx % 2
216 x = MARGIN_X + col * (PANEL_W + PANEL_GAP_X)
217 y = MARGIN_TOP + row * (PANEL_H + PANEL_GAP_Y)
218 return x, y
219
220
221def draw_panel(draw: ImageDraw.ImageDraw, idx: int, panel: dict[str, str]) -> None:

Callers 2

draw_panelFunction · 0.85
write_svgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected