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

Skip to content

Commit fa80e74

Browse files
authored
Merge pull request #12276 from meeseeksmachine/auto-backport-of-pr-12272-on-v3.0.0-doc
Backport PR #12272 on branch v3.0.0-doc (Fix `contrained` to `constrained`)
2 parents 0a1c1e5 + 8e1192e commit fa80e74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/pyplots/auto_subplots_adjust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:doc:`draw_event</users/event_handling>`.
99
1010
Note that a similar result would be achieved using `~.Figure.tight_layout`
11-
or `~.Figure.contrained_layout`; this example shows how one could customize
11+
or `~.Figure.constrained_layout`; this example shows how one could customize
1212
the subplot parameter adjustment.
1313
"""
1414
import matplotlib.pyplot as plt

tutorials/intermediate/constrainedlayout_guide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* using the respective argument to :func:`~.pyplot.subplots` or
2121
:func:`~.pyplot.figure`, e.g.::
2222
23-
plt.subplots(contrained_layout=True)
23+
plt.subplots(constrained_layout=True)
2424
2525
* activate it via :ref:`rcParams<matplotlib-rcparams>`, like::
2626

0 commit comments

Comments
 (0)