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.
This commit is contained in:
Paul Gauthier 2024-05-31 11:26:27 -07:00
parent 7fe697c1df
commit 676b644df4

View file

@ -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)