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

Method draw

lib/matplotlib/artist.py:1044–1061  ·  view source on GitHub ↗

Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (`.Artist.get_visible` returns False). Parameters ---------- renderer : `~matplotlib.backend_bases.RendererBase` subclass. Notes

(self, renderer)

Source from the content-addressed store, hash-verified

1042 self.stale = True
1043
1044 def draw(self, renderer):
1045 """
1046 Draw the Artist (and its children) using the given renderer.
1047
1048 This has no effect if the artist is not visible (`.Artist.get_visible`
1049 returns False).
1050
1051 Parameters
1052 ----------
1053 renderer : `~matplotlib.backend_bases.RendererBase` subclass.
1054
1055 Notes
1056 -----
1057 This method is overridden in the Artist subclasses.
1058 """
1059 if not self.get_visible():
1060 return
1061 self.stale = False
1062
1063 def set_alpha(self, alpha):
1064 """

Callers

nothing calls this directly

Calls 1

get_visibleMethod · 0.95

Tested by

no test coverage detected