From 7852a6d2cf03e3ae0b31023fbefb9fc65f4c43a1 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Tue, 12 Sep 2023 10:58:44 +0200 Subject: [PATCH] Backport PR #26676: [DOC] Slightly improve the LineCollection docstring --- lib/matplotlib/collections.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index 9db9a066fb65..81db24d0c026 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -1404,11 +1404,12 @@ def __init__(self, segments, # Can be None. Parameters ---------- segments : list of array-like - A sequence of (*line0*, *line1*, *line2*), where:: + A sequence (*line0*, *line1*, *line2*) of lines, where each line is a list + of points:: - linen = (x0, y0), (x1, y1), ... (xm, ym) + lineN = [(x0, y0), (x1, y1), ... (xm, ym)] - or the equivalent numpy array with two columns. Each line + or the equivalent Mx2 numpy array with two columns. Each line can have a different number of segments. linewidths : float or list of float, default: :rc:`lines.linewidth` The width of each line in points.