mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
style: Refactor conditional logic in color assignment
This commit is contained in:
parent
c4f70d81b7
commit
1f6cadcc66
1 changed files with 6 additions and 4 deletions
|
@ -50,10 +50,12 @@ def plot_over_time(yaml_file):
|
|||
spine.set_linewidth(0.5)
|
||||
|
||||
colors = [
|
||||
"orange" if "-4o-" in model and "gpt-4o-mini" not in model
|
||||
else "red" if "gpt-4" in model
|
||||
else "green" if "gpt-3.5" in model
|
||||
else "blue" for model in models
|
||||
(
|
||||
"orange"
|
||||
if "-4o-" in model and "gpt-4o-mini" not in model
|
||||
else "red" if "gpt-4" in model else "green" if "gpt-3.5" in model else "blue"
|
||||
)
|
||||
for model in models
|
||||
]
|
||||
ax.scatter(dates, pass_rates, c=colors, alpha=0.5, s=120)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue