From 412281299e4adb59fafde0d1fb549b29d8d4cdb8 Mon Sep 17 00:00:00 2001 From: Colin Carroll Date: Tue, 25 Sep 2018 11:53:00 -0400 Subject: [PATCH] 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 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::