fix: Update color logic and font size in over_time.py

This commit is contained in:
Paul Gauthier 2024-08-14 06:27:47 -07:00 committed by Paul Gauthier (aider)
parent 1f6cadcc66
commit 714fd45f4d

View file

@ -52,7 +52,7 @@ def plot_over_time(yaml_file):
colors = [ colors = [
( (
"orange" "orange"
if "-4o-" in model and "gpt-4o-mini" not in model 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" else "red" if "gpt-4" in model else "green" if "gpt-3.5" in model else "blue"
) )
for model in models for model in models
@ -63,7 +63,7 @@ def plot_over_time(yaml_file):
ax.annotate( ax.annotate(
model, model,
(dates[i], pass_rates[i]), (dates[i], pass_rates[i]),
fontsize=12, fontsize=8,
alpha=0.75, alpha=0.75,
xytext=(5, 5), xytext=(5, 5),
textcoords="offset points", textcoords="offset points",