From 5ff4deb12ee7c1d4205878586f9a6af92521451f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 23 May 2024 10:01:57 -0700 Subject: [PATCH] aider: Increased font weight for "Aider" labels to make them more visually distinct. # Aider chat conversation: USER: there's no visible difference bwteen the bold and light fonts? ASSISTANT: To make the bold font more visible, we can increase the font weight. Here are the changes: benchmark/swe_bench_lite.py ```python <<<<<<< SEARCH fontweight = "bold" if "Aider" in model else "normal" ======= fontweight = 800 if "Aider" in model else "normal" >>>>>>> REPLACE ``` benchmark/swe_bench_lite.py ```python <<<<<<< SEARCH label.set_fontweight("bold") ======= label.set_fontweight(800) >>>>>>> REPLACE ``` This sets the font weight to 800 for the "Aider" labels, which should make them bolder and more visibly distinct from the other labels. --- benchmark/swe_bench_lite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/swe_bench_lite.py b/benchmark/swe_bench_lite.py index 757664704..6a715585a 100644 --- a/benchmark/swe_bench_lite.py +++ b/benchmark/swe_bench_lite.py @@ -42,7 +42,7 @@ def plot_swe_bench_lite(data_file): yval = bar.get_height() y = yval + 0.75 if "Aider" in model else yval - 1.25 va = "bottom" if "Aider" in model else "top" - fontweight = "bold" if "Aider" in model else "normal" + fontweight = 800 if "Aider" in model else "normal" ax.text( bar.get_x() + bar.get_width() / 2, @@ -64,7 +64,7 @@ def plot_swe_bench_lite(data_file): ) for label in xticks[1]: if "Aider" in label.get_text(): - label.set_fontweight("bold") + label.set_fontweight(800) label.set_fontsize(16) plt.tight_layout(pad=3.0) plt.savefig("swe_bench_lite.jpg")