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

Method cleaned

lib/matplotlib/path.py:489–506  ·  view source on GitHub ↗

Return a new `Path` with vertices and codes cleaned according to the parameters. See Also -------- Path.iter_segments : for details of the keyword arguments.

(self, transform=None, remove_nans=False, clip=None,
                *, simplify=False, curves=False,
                stroke_width=1.0, snap=False, sketch=None)

Source from the content-addressed store, hash-verified

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,
491 stroke_width=1.0, snap=False, sketch=None):
492 """
493 Return a new `Path` with vertices and codes cleaned according to the
494 parameters.
495
496 See Also
497 --------
498 Path.iter_segments : for details of the keyword arguments.
499 """
500 vertices, codes = _path.cleanup_path(
501 self, transform, remove_nans, clip, snap, stroke_width, simplify,
502 curves, sketch)
503 pth = Path._fast_from_codes_and_verts(vertices, codes, self)
504 if not simplify:
505 pth._should_simplify = False
506 return pth
507
508 def transformed(self, transform):
509 """

Callers 9

iter_segmentsMethod · 0.95
test_angled_antiparallelFunction · 0.95
test_simplify_closepolyFunction · 0.95
test_noiseFunction · 0.80
_get_simplifiedFunction · 0.80
test_sine_plus_noiseFunction · 0.80
test_fft_peaksFunction · 0.80
test_cleanup_closepolyFunction · 0.80

Calls 1

Tested by 8

test_angled_antiparallelFunction · 0.76
test_simplify_closepolyFunction · 0.76
test_noiseFunction · 0.64
_get_simplifiedFunction · 0.64
test_sine_plus_noiseFunction · 0.64
test_fft_peaksFunction · 0.64
test_cleanup_closepolyFunction · 0.64