mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
style: Apply linter formatting to over_time.py
This commit is contained in:
parent
8edf9540d5
commit
4b3dd7f4ea
1 changed files with 3 additions and 7 deletions
|
@ -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...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue