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

Method draw_path

lib/matplotlib/patheffects.py:364–371  ·  view source on GitHub ↗
(self, renderer, gc, tpath, affine, rgbFace)

Source from the content-addressed store, hash-verified

362 self.patch = mpatches.PathPatch([], **kwargs)
363
364 def draw_path(self, renderer, gc, tpath, affine, rgbFace):
365 self.patch._path = tpath
366 self.patch.set_transform(affine + self._offset_transform(renderer))
367 self.patch.set_clip_box(gc.get_clip_rectangle())
368 clip_path = gc.get_clip_path()
369 if clip_path and self.patch.get_clip_path() is None:
370 self.patch.set_clip_path(*clip_path)
371 self.patch.draw(renderer)
372
373
374class TickedStroke(AbstractPathEffect):

Callers

nothing calls this directly

Calls 7

_offset_transformMethod · 0.80
get_clip_rectangleMethod · 0.80
set_transformMethod · 0.45
set_clip_boxMethod · 0.45
get_clip_pathMethod · 0.45
set_clip_pathMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected