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

Method finalize

lib/matplotlib/backends/backend_pdf.py:2591–2598  ·  view source on GitHub ↗

Make sure every pushed graphics state is popped.

(self)

Source from the content-addressed store, hash-verified

2589 self._effective_alphas = effective_alphas
2590
2591 def finalize(self):
2592 """
2593 Make sure every pushed graphics state is popped.
2594 """
2595 cmds = []
2596 while self.parent is not None:
2597 cmds.extend(self.pop())
2598 return cmds
2599
2600
2601class PdfPages:

Callers

nothing calls this directly

Calls 1

popMethod · 0.95

Tested by

no test coverage detected