From ffec28cc159883e2233c9bad9252facad9c6c7ae Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 31 May 2024 07:42:33 -0700 Subject: [PATCH] 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 ``` --- benchmark/swe_bench_lite.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benchmark/swe_bench_lite.py b/benchmark/swe_bench_lite.py index ad9ba86eb..a84c238b0 100644 --- a/benchmark/swe_bench_lite.py +++ b/benchmark/swe_bench_lite.py @@ -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.