From 77ba518a1ae7b626a7241df69dbc97be27c38afa Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 15 May 2024 11:21:01 -0700 Subject: [PATCH] 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 ``` --- benchmark/over_time.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benchmark/over_time.py b/benchmark/over_time.py index 1a374f962..485982f74 100644 --- a/benchmark/over_time.py +++ b/benchmark/over_time.py @@ -25,6 +25,10 @@ def plot_over_time(yaml_file): fig, ax = plt.subplots(figsize=(10, 4)) 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] ax.scatter(dates, pass_rates, c=colors, alpha=0.5, s=100)