From ddc538cdfad3b20aa8a21b0d30770d7c9b5bc129 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 20 Nov 2024 18:47:28 -0800 Subject: [PATCH] refactor: Adjust plot figure size and y-axis limits for better visualization --- benchmark/over_time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/over_time.py b/benchmark/over_time.py index 11b26eca8..5899ba05b 100644 --- a/benchmark/over_time.py +++ b/benchmark/over_time.py @@ -74,7 +74,7 @@ def plot_over_time(yaml_file): rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10}) plt.rcParams["text.color"] = "#444444" - fig, ax = plt.subplots(figsize=(10, 10)) # Make figure square + fig, ax = plt.subplots(figsize=(12, 8)) # Make figure square print("Debug: Figure created. Plotting data...") ax.grid(axis="y", zorder=0, lw=0.2) @@ -138,7 +138,7 @@ def plot_over_time(yaml_file): "Aider code editing benchmark,\npercent completed correctly", fontsize=18, color="#555" ) ax.set_title("LLM code editing skill by model release date", fontsize=20) - ax.set_ylim(0, 100) # Adjust y-axis limit to accommodate higher values + ax.set_ylim(30, 90) # Adjust y-axis limit to accommodate higher values plt.xticks(fontsize=14, rotation=45, ha="right") # Rotate x-axis labels for better readability plt.tight_layout(pad=3.0)