Skip to content

Commit

Permalink
DOC: Slightly improve the LineCollection docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
timhoffm committed Dec 9, 2024
1 parent b358c98 commit 93cf2e8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/matplotlib/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,14 +1612,13 @@ def __init__(self, segments, # Can be None.
"""
Parameters
----------
segments : list of array-like
A sequence (*line0*, *line1*, *line2*) of lines, where each line is a list
of points::
segments : list of (N, 2) array-like
A sequence ``[line0, line1, ...]`` where each line is a (N, 2)-shape
array-like representing points::
lineN = [(x0, y0), (x1, y1), ... (xm, ym)]
line0 = [(x0, y0), (x1, y1), ...]
or the equivalent Mx2 numpy array with two columns. Each line
can have a different number of segments.
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.
colors : :mpltype:`color` or list of color, default: :rc:`lines.color`
Expand Down

0 comments on commit 93cf2e8

Please sign in to comment.