Commit 7f200fd
miranov25
draw_batch: fix suptitle overlap with subplot titles
Replace tight_layout() + subplots_adjust(top=0.92) with
tight_layout(rect=[0, 0, 1, 0.95]) when suptitle is set.
This tells tight_layout to arrange subplots within the bottom 95%
of the figure, leaving room for suptitle without colliding
with subplot titles.
The old pattern called tight_layout() first (which used the full
figure area), then subplots_adjust(top=0.92) squeezed afterward —
but tight_layout had already positioned subplot titles without
knowing about the reserved space, causing overlap.1 parent cf62cf3 commit 7f200fd
1 file changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1260 | 1260 | | |
1261 | 1261 | | |
1262 | 1262 | | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | 1263 | | |
1267 | 1264 | | |
1268 | 1265 | | |
| |||
1677 | 1674 | | |
1678 | 1675 | | |
1679 | 1676 | | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | 1677 | | |
1685 | 1678 | | |
1686 | 1679 | | |
| |||
2728 | 2721 | | |
2729 | 2722 | | |
2730 | 2723 | | |
2731 | | - | |
2732 | | - | |
| 2724 | + | |
2733 | 2725 | | |
2734 | | - | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
2735 | 2731 | | |
2736 | 2732 | | |
2737 | 2733 | | |
| |||
0 commit comments