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

Method imageObject

lib/matplotlib/backends/backend_pdf.py:1587–1597  ·  view source on GitHub ↗

Return name of an image XObject representing the given image.

(self, image)

Source from the content-addressed store, hash-verified

1585 self.writeObject(self.gouraudObject, gouraudDict)
1586
1587 def imageObject(self, image):
1588 """Return name of an image XObject representing the given image."""
1589
1590 entry = self._images.get(id(image), None)
1591 if entry is not None:
1592 return entry[1]
1593
1594 name = next(self._image_seq)
1595 ob = self.reserveObject(f'image {name}')
1596 self._images[id(image)] = (image, name, ob)
1597 return name
1598
1599 def _unpack(self, im):
1600 """

Callers 1

draw_imageMethod · 0.80

Calls 2

reserveObjectMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected