mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
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:
parent
49eb72cc20
commit
75fa061016
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue