Skip to content

Commit bc2bf2b

Browse files
authored
Merge pull request #25150 from rcomer/cm-tutorial-set_layout_engine
DOC: use 'none' in set_layout_engine
2 parents 7100e9e + 95351da commit bc2bf2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/intermediate/constrainedlayout_guide.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def example_plot(ax, fontsize=12, hide_labels=False):
194194
# we want the legend included in the bbox_inches='tight' calcs.
195195
leg.set_in_layout(True)
196196
# we don't want the layout to change at this point.
197-
fig.set_layout_engine(None)
197+
fig.set_layout_engine('none')
198198
try:
199199
fig.savefig('../../doc/_static/constrained_layout_1b.png',
200200
bbox_inches='tight', dpi=100)
@@ -491,7 +491,7 @@ def example_plot(ax, fontsize=12, hide_labels=False):
491491
# ``constrained_layout`` usually adjusts the axes positions on each draw
492492
# of the figure. If you want to get the spacing provided by
493493
# ``constrained_layout`` but not have it update, then do the initial
494-
# draw and then call ``fig.set_layout_engine(None)``.
494+
# draw and then call ``fig.set_layout_engine('none')``.
495495
# This is potentially useful for animations where the tick labels may
496496
# change length.
497497
#

0 commit comments

Comments
 (0)