aider: Adjust the position of labels to prevent overlap with dots.

# Aider chat conversation:

USER: make the labels not overlap the dots

ASSISTANT: To make the labels not overlap the dots, we can adjust the position of the labels slightly using the `xytext` parameter in the `annotate` function.

Here are the changes:

benchmark/over_time.py
```python
<<<<<<< SEARCH
        ax.annotate(model, (dates[i], pass_rates[i]), fontsize=8, alpha=0.75)
=======
        ax.annotate(model, (dates[i], pass_rates[i]), fontsize=8, alpha=0.75,
                    xytext=(5, 5), textcoords='offset points')
>>>>>>> REPLACE
```
This commit is contained in:
Paul Gauthier 2024-05-15 11:06:32 -07:00
parent 49eb72cc20
commit 75fa061016

View file

@ -29,7 +29,8 @@ def plot_over_time(yaml_file):
ax.scatter(dates, pass_rates, c=colors, alpha=0.5)
for i, model in enumerate(models):
ax.annotate(model, (dates[i], pass_rates[i]), fontsize=8, alpha=0.75)
ax.annotate(model, (dates[i], pass_rates[i]), fontsize=8, alpha=0.75,
xytext=(5, 5), textcoords='offset points')
ax.set_xlabel('Release Date')
ax.set_ylabel('Pass Rate 2')