Skip to content

Commit cc82d4f

Browse files
authored
DOC: Slightly improve the LineCollection docstring (matplotlib#29265)
Closes matplotlib#26738.
1 parent 4eb0464 commit cc82d4f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/matplotlib/collections.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,14 +1612,13 @@ def __init__(self, segments, # Can be None.
16121612
"""
16131613
Parameters
16141614
----------
1615-
segments : list of array-like
1616-
A sequence (*line0*, *line1*, *line2*) of lines, where each line is a list
1617-
of points::
1615+
segments : list of (N, 2) array-like
1616+
A sequence ``[line0, line1, ...]`` where each line is a (N, 2)-shape
1617+
array-like containing points::
16181618
1619-
lineN = [(x0, y0), (x1, y1), ... (xm, ym)]
1619+
line0 = [(x0, y0), (x1, y1), ...]
16201620
1621-
or the equivalent Mx2 numpy array with two columns. Each line
1622-
can have a different number of segments.
1621+
Each line can contain a different number of points.
16231622
linewidths : float or list of float, default: :rc:`lines.linewidth`
16241623
The width of each line in points.
16251624
colors : :mpltype:`color` or list of color, default: :rc:`lines.color`

0 commit comments

Comments
 (0)