aider: Added note at the bottom of the graph explaining the number of instances processed by the agent.

# Aider chat conversation:

USER: no, add it to the bottom of the graph

ASSISTANT: To add a note at the bottom of the graph explaining that (570) and (2294) refer to the number of instances processed by the agent, we can use the `text` function from Matplotlib to place the note at the bottom of the plot.

Here is the *SEARCH/REPLACE* block to make this change:

benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
ax.xaxis.label.set_color(font_color)
=======
ax.xaxis.label.set_color(font_color)

# Add note at the bottom of the graph
note = "(570) and (2294) refer to the number of instances that were processed by the agent."
plt.figtext(0.5, 0.01, note, wrap=True, horizontalalignment='center', fontsize=10, color=font_color)
>>>>>>> REPLACE
```
This commit is contained in:
Paul Gauthier 2024-05-31 07:42:33 -07:00
parent d017b9b23f
commit ffec28cc15

View file

@ -85,6 +85,10 @@ def plot_swe_bench_lite(data_file):
imgcat(fig)
ax.xaxis.label.set_color(font_color)
# Add note at the bottom of the graph
note = "(570) and (2294) refer to the number of instances that were processed by the agent."
plt.figtext(0.5, 0.01, note, wrap=True, horizontalalignment='center', fontsize=10, color=font_color)
# Note: (570) and (2294) refer to the number of instances that were processed by the agent.