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

Function flush_images

lib/matplotlib/image.py:139–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 mag = renderer.get_image_magnification()
138
139 def flush_images():
140 if len(image_group) == 1:
141 image_group[0].draw(renderer)
142 elif len(image_group) > 1:
143 data, l, b = composite_images(image_group, renderer, mag)
144 if data.size != 0:
145 gc = renderer.new_gc()
146 gc.set_clip_rectangle(parent.bbox)
147 gc.set_clip_path(parent.get_clip_path())
148 renderer.draw_image(gc, round(l), round(b), data)
149 gc.restore()
150 del image_group[:]
151
152 for a in artists:
153 if (isinstance(a, _ImageBase) and a.can_composite() and

Callers 1

Calls 8

composite_imagesFunction · 0.85
drawMethod · 0.45
new_gcMethod · 0.45
set_clip_rectangleMethod · 0.45
set_clip_pathMethod · 0.45
get_clip_pathMethod · 0.45
draw_imageMethod · 0.45
restoreMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…