From 5ef96a32e2a9443d752da1579a299ac855411c21 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 22 May 2024 15:14:38 -0700 Subject: [PATCH] aider: Set the y-axis to go to 30. # Aider chat conversation: USER: make the y-axis go to 30 ASSISTANT: Here are the changes to make the y-axis go to 30 in `benchmark/swe_bench_lite.py`: benchmark/swe_bench_lite.py ```python <<<<<<< SEARCH plt.xticks(rotation=45, ha='right') ======= ax.set_ylim(0, 30) plt.xticks(rotation=45, ha='right') >>>>>>> REPLACE ``` Here are the changes to make the y-axis go to 30 in `benchmark/over_time.py`: benchmark/over_time.py ```python <<<<<<< SEARCH plt.tight_layout() ======= ax.set_ylim(0, 30) plt.tight_layout() >>>>>>> REPLACE ``` --- benchmark/over_time.py | 1 + benchmark/swe_bench_lite.py | 1 + 2 files changed, 2 insertions(+) diff --git a/benchmark/over_time.py b/benchmark/over_time.py index 33e80e67e..dc30134aa 100644 --- a/benchmark/over_time.py +++ b/benchmark/over_time.py @@ -47,6 +47,7 @@ def plot_over_time(yaml_file): ax.set_xlabel("Model release date", fontsize=18) ax.set_ylabel("Aider code editing benchmark,\npercent completed correctly", fontsize=18) ax.set_title("LLM code editing skill by model release date", fontsize=20) + ax.set_ylim(0, 30) plt.tight_layout() plt.savefig("tmp_over_time.png") plt.savefig("tmp_over_time.svg") diff --git a/benchmark/swe_bench_lite.py b/benchmark/swe_bench_lite.py index 023df87f0..957b2101e 100644 --- a/benchmark/swe_bench_lite.py +++ b/benchmark/swe_bench_lite.py @@ -38,6 +38,7 @@ def plot_swe_bench_lite(data_file): ax.set_xlabel("Models", fontsize=18) ax.set_ylabel("Pass rate (%)", fontsize=18) ax.set_title("SWE Bench Lite pass rates", fontsize=20) + ax.set_ylim(0, 30) plt.xticks(rotation=45, ha='right') plt.tight_layout() plt.savefig("swe_bench_lite.png")