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

Method attach_note

lib/matplotlib/backends/backend_pdf.py:2704–2711  ·  view source on GitHub ↗

Add a new text note to the page to be saved next. The optional positionRect specifies the position of the new note on the page. It is outside the page per default to make sure it is invisible on printouts.

(self, text, positionRect=[-100, -100, 0, 0])

Source from the content-addressed store, hash-verified

2702 return len(self._ensure_file().pageList)
2703
2704 def attach_note(self, text, positionRect=[-100, -100, 0, 0]):
2705 """
2706 Add a new text note to the page to be saved next. The optional
2707 positionRect specifies the position of the new note on the
2708 page. It is outside the page per default to make sure it is
2709 invisible on printouts.
2710 """
2711 self._ensure_file().newTextnote(text, positionRect)
2712
2713
2714class FigureCanvasPdf(FigureCanvasBase):

Callers 1

multipage_pdf.pyFile · 0.80

Calls 2

_ensure_fileMethod · 0.95
newTextnoteMethod · 0.80

Tested by

no test coverage detected