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)
| 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.""" |