Set the clip properly for the gc.
(self, gc)
| 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.""" |