From f4c6cb996cd8b29a85cef44ae75e6110e602eec5 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Sun, 31 Jan 2021 21:23:57 -0800 Subject: [PATCH] DOC: correct off by one indentation. the off by one made it look like to rst/numpydoc that the parameters h_pad, w_pad ... etc are part of the indented block of the `rendered` parameter. This is not rendered on the matplotlib doc AFAICT, but no reason to have it wrong... --- lib/matplotlib/_constrained_layout.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/matplotlib/_constrained_layout.py b/lib/matplotlib/_constrained_layout.py index ec01448c524e..58bb0ccabf95 100644 --- a/lib/matplotlib/_constrained_layout.py +++ b/lib/matplotlib/_constrained_layout.py @@ -74,15 +74,15 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad, renderer : Renderer Renderer to use. - h_pad, w_pad : float - Padding around the axes elements in figure-normalized units. - - hspace, wspace : float - Fraction of the figure to dedicate to space between the - axes. These are evenly spread between the gaps between the axes. - A value of 0.2 for a three-column layout would have a space - of 0.1 of the figure width between each column. - If h/wspace < h/w_pad, then the pads are used instead. + h_pad, w_pad : float + Padding around the axes elements in figure-normalized units. + + hspace, wspace : float + Fraction of the figure to dedicate to space between the + axes. These are evenly spread between the gaps between the axes. + A value of 0.2 for a three-column layout would have a space + of 0.1 of the figure width between each column. + If h/wspace < h/w_pad, then the pads are used instead. """ # list of unique gridspecs that contain child axes: