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

Method _iter_connected_components

lib/matplotlib/path.py:479–487  ·  view source on GitHub ↗

Return subpaths split at MOVETOs.

(self)

Source from the content-addressed store, hash-verified

477 prev_vert = verts[-2:]
478
479 def _iter_connected_components(self):
480 """Return subpaths split at MOVETOs."""
481 if self.codes is None:
482 yield self
483 else:
484 idxs = np.append((self.codes == Path.MOVETO).nonzero()[0], len(self.codes))
485 for sl in map(slice, idxs, idxs[1:]):
486 yield Path._fast_from_codes_and_verts(
487 self.vertices[sl], self.codes[sl], self)
488
489 def cleaned(self, transform=None, remove_nans=False, clip=None,
490 *, simplify=False, curves=False,

Callers 6

interpolatedMethod · 0.95
_3d_extend_contourMethod · 0.80
labelsMethod · 0.80
ContourSetClass · 0.80
_find_nearest_contourMethod · 0.80
find_nearest_contourMethod · 0.80

Calls 1

Tested by

no test coverage detected