tight_layout may not adjust correctly without a renderer in matplotlib figure layout
When a matplotlib Figure is created and tight_layout() is called before any rendering step, the layout adjustments may not be applied correctly, especially on non-interactive backends such as Agg where no renderer exists prior to drawing. If constrained_layout is then enabled—either via subplots(constrained_layout=True) or Figure.set_constrained_layout(True)