From d8654f512f8ebdaa3ba67b94c7b678889108f995 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Mon, 7 Apr 2025 02:18:46 +0200 Subject: [PATCH] Backport PR #29853: Update lib/matplotlib/stackplot.py --- lib/matplotlib/stackplot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/stackplot.py b/lib/matplotlib/stackplot.py index 43da57c25da5..bd11558b0da9 100644 --- a/lib/matplotlib/stackplot.py +++ b/lib/matplotlib/stackplot.py @@ -26,11 +26,11 @@ def stackplot(axes, x, *args, x : (N,) array-like y : (M, N) array-like - The data is assumed to be unstacked. Each of the following + The data can be either stacked or unstacked. Each of the following calls is legal:: - stackplot(x, y) # where y has shape (M, N) - stackplot(x, y1, y2, y3) # where y1, y2, y3, y4 have length N + stackplot(x, y) # where y has shape (M, N) e.g. y = [y1, y2, y3, y4] + stackplot(x, y1, y2, y3, y4) # where y1, y2, y3, y4 have length N baseline : {'zero', 'sym', 'wiggle', 'weighted_wiggle'} Method used to calculate the baseline: