| 925 | return bbox.transformed(self.get_transform()) |
| 926 | |
| 927 | def make_image(self, renderer, magnification=1.0, unsampled=False): |
| 928 | # docstring inherited |
| 929 | trans = self.get_transform() |
| 930 | # image is created in the canvas coordinate. |
| 931 | x1, x2, y1, y2 = self.get_extent() |
| 932 | bbox = Bbox(np.array([[x1, y1], [x2, y2]])) |
| 933 | transformed_bbox = TransformedBbox(bbox, trans) |
| 934 | clip = ((self.get_clip_box() or self.axes.bbox) if self.get_clip_on() |
| 935 | else self.get_figure(root=True).bbox) |
| 936 | return self._make_image(self._A, bbox, transformed_bbox, clip, |
| 937 | magnification, unsampled=unsampled) |
| 938 | |
| 939 | def _check_unsampled_image(self): |
| 940 | """Return whether the image would be better drawn unsampled.""" |