From 2bf23975ba0c8287ca3ea507f3b2aa618c4b997e Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 1 Sep 2023 14:55:34 +0200 Subject: [PATCH] [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.