This commit is contained in:
Paul Gauthier 2024-06-01 07:23:25 -07:00
parent 1b539e4466
commit 07d36b22c0
5 changed files with 1080 additions and 417 deletions

View file

@ -5,6 +5,8 @@ import matplotlib.pyplot as plt
from imgcat import imgcat
from matplotlib import rc
from aider.dump import dump # noqa: F401
def plot_swe_bench(data_file, is_lite):
with open(data_file, "r") as file:
@ -50,6 +52,10 @@ def plot_swe_bench(data_file, is_lite):
bar = ax.bar(model, pass_rate, color=color, alpha=alpha, zorder=3, hatch=hatch)
bars.append(bar[0])
for label in ax.get_xticklabels():
if "Aider" in str(label):
label.set_fontfamily("Helvetica Bold")
for model, bar in zip(models, bars):
yval = bar.get_height()
y = yval - 1