From f9b0c2c1cbced9595b8566626d30a74978562716 Mon Sep 17 00:00:00 2001 From: Constantine Evans Date: Mon, 29 Nov 2021 00:19:43 +0000 Subject: [PATCH] Docs fix row/column in GridSpec height_ratios Documentation for height_ratios in GridSpec.__init__ uses "column" where it should use "row". This fixes the mixup. --- 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 980be6a25e45..a29cfb47b014 100644 --- a/lib/matplotlib/gridspec.py +++ b/lib/matplotlib/gridspec.py @@ -371,7 +371,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.