r""" Represents a sequence of `.Line2D`\s that should be drawn together. This class extends `.Collection` to represent a sequence of `.Line2D`\s instead of just a sequence of `.Patch`\s. Just as in `.Collection`, each property of a *LineCollection* may be either a single value o
| 1707 | |
| 1708 | |
| 1709 | class LineCollection(Collection): |
| 1710 | r""" |
| 1711 | Represents a sequence of `.Line2D`\s that should be drawn together. |
| 1712 | |
| 1713 | This class extends `.Collection` to represent a sequence of |
| 1714 | `.Line2D`\s instead of just a sequence of `.Patch`\s. |
| 1715 | Just as in `.Collection`, each property of a *LineCollection* may be either |
| 1716 | a single value or a list of values. This list is then used cyclically for |
| 1717 | each element of the LineCollection, so the property of the ``i``\th element |
| 1718 | of the collection is:: |
| 1719 | |
| 1720 | prop[i % len(prop)] |
| 1721 | |
| 1722 | The properties of each member of a *LineCollection* default to their values |
| 1723 | in :rc:`lines.*` instead of :rc:`patch.*`, and the property *colors* is |
| 1724 | added in place of *edgecolors*. |
| 1725 | """ |
| 1726 | |
| 1727 | _edge_default = True |
| 1728 | |
| 1729 | def __init__(self, segments, # Can be None. |
| 1730 | *, |
| 1731 | zorder=2, # Collection.zorder is 1 |
| 1732 | **kwargs |
| 1733 | ): |
| 1734 | """ |
| 1735 | Parameters |
| 1736 | ---------- |
| 1737 | segments : list of (N, 2) array-like |
| 1738 | A sequence ``[line0, line1, ...]`` where each line is a (N, 2)-shape |
| 1739 | array-like containing points:: |
| 1740 | |
| 1741 | line0 = [(x0, y0), (x1, y1), ...] |
| 1742 | |
| 1743 | Each line can contain a different number of points. |
| 1744 | linewidths : float or list of float, default: :rc:`lines.linewidth` |
| 1745 | The width of each line in points. |
| 1746 | colors : :mpltype:`color` or list of color, default: :rc:`lines.color` |
| 1747 | A sequence of RGBA tuples (e.g., arbitrary color strings, etc, not |
| 1748 | allowed). |
| 1749 | antialiaseds : bool or list of bool, default: :rc:`lines.antialiased` |
| 1750 | Whether to use antialiasing for each line. |
| 1751 | zorder : float, default: 2 |
| 1752 | zorder of the lines once drawn. |
| 1753 | |
| 1754 | facecolors : :mpltype:`color` or list of :mpltype:`color`, default: 'none' |
| 1755 | When setting *facecolors*, each line is interpreted as a boundary |
| 1756 | for an area, implicitly closing the path from the last point to the |
| 1757 | first point. The enclosed area is filled with *facecolor*. |
| 1758 | In order to manually specify what should count as the "interior" of |
| 1759 | each line, please use `.PathCollection` instead, where the |
| 1760 | "interior" can be specified by appropriate usage of |
| 1761 | `~.path.Path.CLOSEPOLY`. |
| 1762 | |
| 1763 | **kwargs |
| 1764 | Forwarded to `.Collection`. |
| 1765 | """ |
| 1766 | # Unfortunately, mplot3d needs this explicit setting of 'facecolors'. |
no outgoing calls
searching dependent graphs…