mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
aider: Adjust alpha values for bars based on model name containing "Aider".
# Aider chat conversation: USER: can we use more alpha for the aider bars and less alpha for the other bars? ASSISTANT: To adjust the alpha values for the bars, we need to modify the section where the bars are created and set their alpha values based on whether the model name contains "Aider". Here is the *SEARCH/REPLACE* block: benchmark/swe_bench_lite.py ```python <<<<<<< SEARCH bars = ax.bar(models, pass_rates, color=colors, alpha=0.75, zorder=3) ======= bars = [] for model, pass_rate, color in zip(models, pass_rates, colors): alpha = 0.9 if "Aider" in model else 0.5 bar = ax.bar(model, pass_rate, color=color, alpha=alpha, zorder=3) bars.append(bar[0]) >>>>>>> REPLACE ```
This commit is contained in:
parent
210aeb6133
commit
ee7dcd5071
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@ def plot_swe_bench_lite(data_file):
|
|||
spine.set_linewidth(0.5)
|
||||
|
||||
colors = ["#b3e6a8" if "Aider" in model else "#b3d1e6" for model in models]
|
||||
bars = ax.bar(models, pass_rates, color=colors, alpha=0.75, zorder=3)
|
||||
bars = []
|
||||
for model, pass_rate, color in zip(models, pass_rates, colors):
|
||||
alpha = 0.9 if "Aider" in model else 0.5
|
||||
bar = ax.bar(model, pass_rate, color=color, alpha=alpha, zorder=3)
|
||||
bars.append(bar[0])
|
||||
|
||||
for model, bar in zip(models, bars):
|
||||
yval = bar.get_height()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue