From a6ae4cab0686499ebf28dcc7e0308636effa1485 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 22 May 2024 15:18:20 -0700 Subject: [PATCH] aider: Make the model labels on the x axis larger. # Aider chat conversation: USER: make the model labels on the x axis larger ASSISTANT: Here are the changes to make the model labels on the x-axis larger in `benchmark/swe_bench_lite.py` and `benchmark/over_time.py`: benchmark/swe_bench_lite.py ```python <<<<<<< SEARCH plt.xticks(rotation=45, ha='right') ======= plt.xticks(rotation=45, ha='right', fontsize=14) >>>>>>> REPLACE ``` benchmark/over_time.py ```python <<<<<<< SEARCH plt.tight_layout() ======= plt.xticks(fontsize=14) plt.tight_layout() >>>>>>> REPLACE ``` --- benchmark/over_time.py | 1 + benchmark/swe_bench_lite.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/over_time.py b/benchmark/over_time.py index dc30134aa..ee0cd61df 100644 --- a/benchmark/over_time.py +++ b/benchmark/over_time.py @@ -48,6 +48,7 @@ def plot_over_time(yaml_file): 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.xticks(fontsize=14) 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 c1ad7d7c6..246729da0 100644 --- a/benchmark/swe_bench_lite.py +++ b/benchmark/swe_bench_lite.py @@ -41,7 +41,7 @@ def plot_swe_bench_lite(data_file): 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.xticks(rotation=45, ha='right', fontsize=14) plt.tight_layout() plt.savefig("swe_bench_lite.png") plt.savefig("swe_bench_lite.svg")