Skip to content

Commit abd01e7

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #29265: DOC: Slightly improve the LineCollection docstring
1 parent 1891bf0 commit abd01e7

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy