Skip to content

Commit ade95bd

Browse files
padding
1 parent 86625ec commit ade95bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/plot_dataset/treemap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def _build_figure(
508508
legend=dict(
509509
orientation="h",
510510
yanchor="top",
511-
y=1.08,
511+
y=1.15,
512512
xanchor="center",
513513
x=0.5,
514514
font=dict(size=14),
@@ -553,11 +553,11 @@ def generate_dataset_treemap(
553553
fig = _build_figure(nodes, legend_entries)
554554
# Tune text sizes and margins so the increased padding doesn't cause
555555
# labels to overflow. Keeping uniformtext minsize slightly lower ensures
556-
# smaller tiles don't get crowded, and the larger top margin prevents
557-
# the custom legend from overlapping the pathbar.
556+
# smaller tiles don't get crowded, while the higher top margin combined
557+
# with the raised legend keeps it clear of the pathbar.
558558
fig.update_layout(
559559
uniformtext=dict(minsize=20, mode="hide"),
560-
margin=dict(t=96, l=28, r=28, b=36),
560+
margin=dict(t=132, l=28, r=28, b=36),
561561
hoverlabel=dict(font=dict(size=14), align="left"),
562562
height=880,
563563
)

0 commit comments

Comments
 (0)