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

Method _set_gc_clip

lib/matplotlib/artist.py:985–993  ·  view source on GitHub ↗

Set the clip properly for the gc.

(self, gc)

Source from the content-addressed store, hash-verified

983 self.stale = True
984
985 def _set_gc_clip(self, gc):
986 """Set the clip properly for the gc."""
987 if self._clipon:
988 if self.clipbox is not None:
989 gc.set_clip_rectangle(self.clipbox)
990 gc.set_clip_path(self._clippath)
991 else:
992 gc.set_clip_rectangle(None)
993 gc.set_clip_path(None)
994
995 def get_rasterized(self):
996 """Return whether the artist is to be rasterized."""

Callers 7

drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80

Calls 2

set_clip_rectangleMethod · 0.45
set_clip_pathMethod · 0.45

Tested by

no test coverage detected