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

Method set_clip_on

lib/matplotlib/artist.py:968–983  ·  view source on GitHub ↗

Set whether the artist uses clipping. When False, artists will be visible outside the Axes which can lead to unexpected results. Parameters ---------- b : bool

(self, b)

Source from the content-addressed store, hash-verified

966 return None, None
967
968 def set_clip_on(self, b):
969 """
970 Set whether the artist uses clipping.
971
972 When False, artists will be visible outside the Axes which
973 can lead to unexpected results.
974
975 Parameters
976 ----------
977 b : bool
978 """
979 self._clipon = b
980 # This may result in the callbacks being hit twice, but ensures they
981 # are hit at least once
982 self.pchanged()
983 self.stale = True
984
985 def _set_gc_clip(self, gc):
986 """Set the clip properly for the gc."""

Callers

nothing calls this directly

Calls 1

pchangedMethod · 0.95

Tested by

no test coverage detected