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

Method draw

lib/matplotlib/patches.py:736–750  ·  view source on GitHub ↗
(self, renderer)

Source from the content-addressed store, hash-verified

734
735 @artist.allow_rasterization
736 def draw(self, renderer):
737 # docstring inherited
738 if not self.get_visible():
739 return
740 path = self.get_path()
741 transform = self.get_transform()
742 tpath = transform.transform_path_non_affine(path)
743 affine = transform.get_affine()
744 self._draw_paths_with_artist_properties(
745 renderer,
746 [(tpath, affine,
747 # Work around a bug in the PDF and SVG renderers, which
748 # do not draw the hatches if the facecolor is fully
749 # transparent, but do if it is None.
750 self._facecolor if self._facecolor[3] else None)])
751
752 def get_path(self):
753 """Return the path of this patch."""

Callers

nothing calls this directly

Calls 6

get_pathMethod · 0.95
get_transformMethod · 0.95
get_visibleMethod · 0.45
get_affineMethod · 0.45

Tested by

no test coverage detected