From e2cde58cb334e9dca822999fe13b8a55ef43e091 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 25 Sep 2018 14:03:01 -0400 Subject: [PATCH] Backport PR #12272: Fix `contrained` to `constrained` --- examples/pyplots/auto_subplots_adjust.py | 2 +- tutorials/intermediate/constrainedlayout_guide.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pyplots/auto_subplots_adjust.py b/examples/pyplots/auto_subplots_adjust.py index 574fb15a8bb3..f8f3c561eaff 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 df3bcdf9517d..15ee5fcec079 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::