From 280fd8d06b66204d7a29b3810718e59c1278ceb2 Mon Sep 17 00:00:00 2001 From: Constantine Evans Date: Mon, 29 Nov 2021 00:22:58 +0000 Subject: [PATCH] Backport PR #21787: Fixes row/column mixup in GridSpec height_ratios documentation. --- lib/matplotlib/gridspec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/gridspec.py b/lib/matplotlib/gridspec.py index 5205f2315d03..204bd3f0f729 100644 --- a/lib/matplotlib/gridspec.py +++ b/lib/matplotlib/gridspec.py @@ -369,7 +369,7 @@ def __init__(self, nrows, ncols, figure=None, If not given, all columns will have the same width. height_ratios : array-like of length *nrows*, optional - Defines the relative heights of the rows. Each column gets a + Defines the relative heights of the rows. Each row gets a relative height of ``height_ratios[i] / sum(height_ratios)``. If not given, all rows will have the same height.