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.
This commit is contained in:
Paul Gauthier 2024-05-23 10:01:57 -07:00
parent a03e36f7f7
commit 5ff4deb12e

View file

@ -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")