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

Method make_image

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

Source from the content-addressed store, hash-verified

1500 return inside, {}
1501
1502 def make_image(self, renderer, magnification=1.0, unsampled=False):
1503 # docstring inherited
1504 width, height = renderer.get_canvas_width_height()
1505 bbox_in = self.get_window_extent(renderer).frozen()
1506 bbox_in._points /= [width, height]
1507 bbox_out = self.get_window_extent(renderer)
1508 clip = Bbox([[0, 0], [width, height]])
1509 self._transform = BboxTransformTo(clip)
1510 return self._make_image(
1511 self._A,
1512 bbox_in, bbox_out, clip, magnification, unsampled=unsampled)
1513
1514
1515def imread(fname, format=None):

Callers

nothing calls this directly

Calls 6

get_window_extentMethod · 0.95
BboxClass · 0.90
BboxTransformToClass · 0.90
_make_imageMethod · 0.80
frozenMethod · 0.45

Tested by

no test coverage detected