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

Method reserveObject

lib/matplotlib/backends/backend_pdf.py:1824–1833  ·  view source on GitHub ↗

Reserve an ID for an indirect object. The name is used for debugging in case we forget to print out the object with writeObject.

(self, name='')

Source from the content-addressed store, hash-verified

1822 self.output(*cmds)
1823
1824 def reserveObject(self, name=''):
1825 """
1826 Reserve an ID for an indirect object.
1827
1828 The name is used for debugging in case we forget to print out
1829 the object with writeObject.
1830 """
1831 id = next(self._object_seq)
1832 self.xrefTable.append([None, 0, name])
1833 return Reference(id)
1834
1835 def recordXref(self, id):
1836 self.xrefTable[id][0] = self.fh.tell() - self.tell_base

Callers 15

__init__Method · 0.95
newPageMethod · 0.95
_write_afm_fontMethod · 0.95
_embedTeXFontMethod · 0.95
createType1DescriptorMethod · 0.95
embedTTFType3Method · 0.95
embedTTFType42Method · 0.95
_soft_mask_stateMethod · 0.95
writeHatchesMethod · 0.95
addGouraudTrianglesMethod · 0.95
imageObjectMethod · 0.95
_writeImgMethod · 0.95

Calls 1

ReferenceClass · 0.85

Tested by

no test coverage detected