Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Backport PR #26676: [DOC] Slightly improve the LineCollection docstring
  • Loading branch information
oscargus authored and meeseeksmachine committed Sep 12, 2023
commit 7852a6d2cf03e3ae0b31023fbefb9fc65f4c43a1
7 changes: 4 additions & 3 deletions lib/matplotlib/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down