From 68eef77119ba94faafa9e6e4d210d62beaee1541 Mon Sep 17 00:00:00 2001 From: roman Date: Sun, 11 Oct 2026 03:45:46 +0300 Subject: [PATCH] fix: put the growth series end label above its whisker in the R* plot Co-Authored-By: Claude Opus 5.5 --- bench/plots.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bench/plots.py b/bench/plots.py index 4572c633..c727074d 100644 --- a/bench/plots.py +++ b/bench/plots.py @@ -691,12 +691,14 @@ def plot_rstar(labels: list[dict[str, Any]], title: str) -> str: + (f", эффективность {eff:.2f}" if eff is not None else ""), ) if points: + # подпись конца линии — над точкой: справа стоят точки серии a k, c = points[-1] svg.text( - sx(k) + 10, - sy(c["r_star"]) + 4, + sx(k), + sy(max(c["r_stars"])) - 10, f"{c['r_star']:.0f}", color=INK, + anchor="middle", ) legend.append((color, "серия b: k × 1 CPU", "line")) if sat and sat["k_sat"]: