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

Method newTextnote

lib/matplotlib/backends/backend_pdf.py:784–791  ·  view source on GitHub ↗
(self, text, positionRect=[-100, -100, 0, 0])

Source from the content-addressed store, hash-verified

782 self.pageAnnotations = []
783
784 def newTextnote(self, text, positionRect=[-100, -100, 0, 0]):
785 # Create a new annotation of type text
786 theNote = {'Type': Name('Annot'),
787 'Subtype': Name('Text'),
788 'Contents': text,
789 'Rect': positionRect,
790 }
791 self.pageAnnotations.append(theNote)
792
793 @staticmethod
794 def _get_subset_prefix(charset):

Callers 1

attach_noteMethod · 0.80

Calls 1

NameClass · 0.85

Tested by

no test coverage detected