diff --git a/examples/pyplots/auto_subplots_adjust.py b/examples/pyplots/auto_subplots_adjust.py index 5575643bd874..e6eb620168ac 100644 --- a/examples/pyplots/auto_subplots_adjust.py +++ b/examples/pyplots/auto_subplots_adjust.py @@ -8,7 +8,7 @@ :doc:`draw_event`. Note that a similar result would be achieved using `~.Figure.tight_layout` -or `~.Figure.contrained_layout`; this example shows how one could customize +or `~.Figure.constrained_layout`; this example shows how one could customize the subplot parameter adjustment. """ import matplotlib.pyplot as plt diff --git a/tutorials/intermediate/constrainedlayout_guide.py b/tutorials/intermediate/constrainedlayout_guide.py index 4d007b50a051..8699765f0e7f 100644 --- a/tutorials/intermediate/constrainedlayout_guide.py +++ b/tutorials/intermediate/constrainedlayout_guide.py @@ -20,7 +20,7 @@ * using the respective argument to :func:`~.pyplot.subplots` or :func:`~.pyplot.figure`, e.g.:: - plt.subplots(contrained_layout=True) + plt.subplots(constrained_layout=True) * activate it via :ref:`rcParams`, like::