mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
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:
parent
7fe697c1df
commit
676b644df4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue