Skip to content

Commit 86625ec

Browse files
overlap legends
1 parent 2056cba commit 86625ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/plot_dataset/treemap.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +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.
556+
# smaller tiles don't get crowded, and the larger top margin prevents
557+
# the custom legend from overlapping the pathbar.
557558
fig.update_layout(
558559
uniformtext=dict(minsize=20, mode="hide"),
559-
margin=dict(t=56, l=28, r=28, b=36),
560+
margin=dict(t=96, l=28, r=28, b=36),
560561
hoverlabel=dict(font=dict(size=14), align="left"),
561562
height=880,
562563
)

0 commit comments

Comments
 (0)