mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
aider: Made the border of the graph thinner and lighter by adjusting the spines
properties of the axes.
# Aider chat conversation: USER: make the border of the graph thinner and lighter ASSISTANT: To make the border of the graph thinner and lighter, we can adjust the `spines` properties of the axes. Here are the changes: benchmark/over_time.py ```python <<<<<<< SEARCH colors = ['red' if 'gpt-4' in model else 'green' if 'gpt-3.5' in model else 'blue' for model in models] ======= for spine in ax.spines.values(): spine.set_edgecolor('#DDDDDD') spine.set_linewidth(0.5) colors = ['red' if 'gpt-4' in model else 'green' if 'gpt-3.5' in model else 'blue' for model in models] >>>>>>> REPLACE ```
This commit is contained in:
parent
a018fdfe2c
commit
77ba518a1a
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ def plot_over_time(yaml_file):
|
||||||
|
|
||||||
fig, ax = plt.subplots(figsize=(10, 4))
|
fig, ax = plt.subplots(figsize=(10, 4))
|
||||||
ax.grid(axis="y", zorder=0, lw=0.2)
|
ax.grid(axis="y", zorder=0, lw=0.2)
|
||||||
|
for spine in ax.spines.values():
|
||||||
|
spine.set_edgecolor('#DDDDDD')
|
||||||
|
spine.set_linewidth(0.5)
|
||||||
|
|
||||||
colors = ['red' if 'gpt-4' in model else 'green' if 'gpt-3.5' in model else 'blue' for model in models]
|
colors = ['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=100)
|
ax.scatter(dates, pass_rates, c=colors, alpha=0.5, s=100)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue