From 4b3dd7f4ea8cf73b09e13c3ef8982b195c302910 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 20 Nov 2024 19:59:43 -0800 Subject: [PATCH] style: Apply linter formatting to over_time.py --- benchmark/over_time.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/benchmark/over_time.py b/benchmark/over_time.py index cedd2a0ec..a872d184a 100644 --- a/benchmark/over_time.py +++ b/benchmark/over_time.py @@ -123,7 +123,7 @@ def plot_over_time(yaml_file): # Create legend handles legend_handles = [] legend_labels = [] - + # Plot points and collect unique model types for legend seen_colors = {} for i, (date, rate, color, model) in enumerate(zip(dates, pass_rates, colors, models)): @@ -147,13 +147,9 @@ def plot_over_time(yaml_file): plt.xticks(fontsize=14, rotation=45, ha="right") # Rotate x-axis labels for better readability # Add legend ax.legend( - legend_handles, - legend_labels, - loc='center left', - bbox_to_anchor=(1, 0.5), - fontsize=10 + legend_handles, legend_labels, loc="center left", bbox_to_anchor=(1, 0.5), fontsize=10 ) - + plt.tight_layout(pad=3.0, rect=[0, 0, 0.85, 1]) # Adjust layout to make room for legend print("Debug: Saving figures...")