Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0eef05f

Browse files
committed
DOC: update tight layout guide with set_in_layout
1 parent 580ae37 commit 0eef05f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tutorials/intermediate/tight_layout_guide.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ def example_plot(ax, fontsize=12):
152152
# Caveats
153153
# =======
154154
#
155-
# * :func:`~matplotlib.pyplot.tight_layout` only considers ticklabels, axis
156-
# labels, and titles. Thus, other artists may be clipped and also may
157-
# overlap.
155+
# * :func:`~matplotlib.pyplot.tight_layout` by default considers all artists
156+
# on the axes. To remove an artist from the layout calculation you can call
157+
# `~.Artist.set_in_layout`.
158158
#
159-
# * It assumes that the extra space needed for ticklabels, axis labels,
160-
# and titles is independent of original location of axes. This is
161-
# often true, but there are rare cases where it is not.
159+
# * It assumes that the extra space needed for artists is independent of
160+
# original location of axes. This is often true, but there are rare cases
161+
# where it is not.
162162
#
163163
# * pad=0 clips some of the texts by a few pixels. This may be a bug or
164164
# a limitation of the current algorithm and it is not clear why it

0 commit comments

Comments
 (0)