mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
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:
parent
d017b9b23f
commit
ffec28cc15
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue