Skip to content

Commit e17fca2

Browse files
position legend below graph field
1 parent a661cc6 commit e17fca2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/geophires_docs/generate_fervo_project_red_2026_docs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ def _regenerate_graph_from_csv(
283283
ax.set_xlim(0.0, 2.0)
284284
ax.set_ylim(0.0, 200.0)
285285
ax.grid(True, linestyle='--', alpha=0.5)
286-
ax.legend(loc='best')
286+
287+
# Position the legend below the graph, centered horizontally.
288+
ax.legend(loc='upper center', bbox_to_anchor=(0.5, -0.12), ncol=1, frameon=False, fontsize=11)
287289

288290
output_path.parent.mkdir(parents=True, exist_ok=True)
289291
fig.savefig(output_path, dpi=150, bbox_inches='tight')

0 commit comments

Comments
 (0)