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

Method make_image

lib/matplotlib/image.py:927–937  ·  view source on GitHub ↗
(self, renderer, magnification=1.0, unsampled=False)

Source from the content-addressed store, hash-verified

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

Callers 4

composite_imagesFunction · 0.45
test_empty_imshowFunction · 0.45
test_exact_vminFunction · 0.45
test_resample_dtypesFunction · 0.45

Calls 8

get_extentMethod · 0.95
BboxClass · 0.90
TransformedBboxClass · 0.90
get_clip_boxMethod · 0.80
get_clip_onMethod · 0.80
_make_imageMethod · 0.80
get_transformMethod · 0.45
get_figureMethod · 0.45

Tested by 3

test_empty_imshowFunction · 0.36
test_exact_vminFunction · 0.36
test_resample_dtypesFunction · 0.36