From ba95a270394c601812991caa327ad3f04d8a1bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Miquel?= Date: Wed, 25 Feb 2026 20:44:12 +0100 Subject: [PATCH] Error in orange --- annotating.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/annotating.py b/annotating.py index 1b27841..5eb1038 100644 --- a/annotating.py +++ b/annotating.py @@ -230,7 +230,8 @@ def render_score_text(label, score, error, width_px, fontsize=18, score_str = f"{label} ; Note : \\color{{{hex_color}}}{{{score}}}" if error and error != "null": - score_str += f" | Error: {error}" + # Uses standard Matplotlib color name 'orange' + score_str += f" | \\color{{orange}}{{Error: {error}}}" # 3. Wrap Text (using your existing heuristic) dpi = 100