MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_segments

Method set_segments

lib/matplotlib/collections.py:1773–1780  ·  view source on GitHub ↗
(self, segments)

Source from the content-addressed store, hash-verified

1771 self.set_segments(segments)
1772
1773 def set_segments(self, segments):
1774 if segments is None:
1775 return
1776
1777 self._paths = [mpath.Path(seg) if isinstance(seg, np.ma.MaskedArray)
1778 else mpath.Path(np.asarray(seg, float))
1779 for seg in segments]
1780 self.stale = True
1781
1782 set_verts = set_segments # for compatibility with PolyCollection
1783 set_paths = set_segments

Callers 6

__init__Method · 0.95
_update_dividersMethod · 0.45
set_positionsMethod · 0.45
switch_orientationMethod · 0.45
set_linelengthMethod · 0.45
set_lineoffsetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected