Skip to content

Commit b0e372a

Browse files
authored
Merge pull request #29279 from meeseeksmachine/auto-backport-of-pr-29265-on-v3.10.x
Backport PR #29265 on branch v3.10.x (DOC: Slightly improve the LineCollection docstring)
2 parents f1657fe + abd01e7 commit b0e372a

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