From 676b644df47bb6de4eb56d2009891af7892defd1 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 31 May 2024 11:26:27 -0700 Subject: [PATCH] aider: Added more whitespace below the graph to give more room for the note. # Aider chat conversation: USER: add more white space below the graph, to give more room for the note ASSISTANT: Here is the change to add more white space below the graph: benchmark/swe_bench_lite.py ```python <<<<<<< SEARCH plt.tight_layout(pad=3.0) ======= plt.tight_layout(pad=3.0, rect=[0, 0.05, 1, 1]) >>>>>>> REPLACE ``` This adjusts the `tight_layout` call to reserve 5% of the figure height at the bottom for the note, using the `rect` parameter. The `rect` tuple specifies the left, bottom, right and top of the area the subplots should occupy as a fraction of figure width and height. --- benchmark/swe_bench_lite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/swe_bench_lite.py b/benchmark/swe_bench_lite.py index e3972b16a..bbe949b67 100644 --- a/benchmark/swe_bench_lite.py +++ b/benchmark/swe_bench_lite.py @@ -94,7 +94,7 @@ def plot_swe_bench_lite(data_file): color=font_color, ) - plt.tight_layout(pad=3.0) + plt.tight_layout(pad=3.0, rect=[0, 0.05, 1, 1]) out_fname = Path(data_file.replace("-", "_")) plt.savefig(out_fname.with_suffix(".jpg").name)