MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / newTextnote

Method newTextnote

site-packages/matplotlib/backends/backend_pdf.py:556–565  ·  view source on GitHub ↗
(self, text, positionRect=[-100, -100, 0, 0])

Source from the content-addressed store, hash-verified

554 self.pageAnnotations = []
555
556 def newTextnote(self, text, positionRect=[-100, -100, 0, 0]):
557 # Create a new annotation of type text
558 theNote = {'Type': Name('Annot'),
559 'Subtype': Name('Text'),
560 'Contents': text,
561 'Rect': positionRect,
562 }
563 annotObject = self.reserveObject('annotation')
564 self.writeObject(annotObject, theNote)
565 self.pageAnnotations.append(annotObject)
566
567 def finalize(self):
568 "Write out the various deferred objects and the pdf end matter."

Callers 1

attach_noteMethod · 0.80

Calls 4

reserveObjectMethod · 0.95
writeObjectMethod · 0.95
NameClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected