Skip to content

Commit 290c255

Browse files
committed
DOC: API change note
1 parent fa32564 commit 290c255

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/api/api_changes_3.3/behaviour.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,19 @@ wx Timer interval
181181
~~~~~~~~~~~~~~~~~
182182
Setting the timer interval on a not-yet-started ``TimerWx`` won't start it
183183
anymore.
184+
185+
tight/constrained_layout no longer worry about titles that are too wide
186+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
187+
188+
*tight_layout* and *constrained_layout* shrink axes to accommodate
189+
"decorations" on the axes. However, if an xlabel or title is too long in the
190+
x direction, making the axes smaller in the x-direction doesn't help. The
191+
behavior of both has been changed to ignore the width of the title and
192+
xlabel and the height of the ylabel in the layout logic.
193+
194+
This also means there is a new keyword argument for `.axes.Axes.get_tightbbox`:
195+
``for_layout_only``, which defaults to *False*, but if *True* returns a
196+
bounding box using the rules above. `.axis.get_tightbbox` gets an
197+
``ignore_label`` keyword argument, which is *None* by default, but which can
198+
also be 'x' or 'y'. These API changes are public, but are meant to be
199+
mostly used internally.

0 commit comments

Comments
 (0)