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

Method close

lib/matplotlib/backends/backend_pdf.py:2660–2668  ·  view source on GitHub ↗

Finalize this object, making the underlying file a complete PDF file.

(self)

Source from the content-addressed store, hash-verified

2658 return self._file
2659
2660 def close(self):
2661 """
2662 Finalize this object, making the underlying file a complete
2663 PDF file.
2664 """
2665 if self._file is not None:
2666 self._file.finalize()
2667 self._file.close()
2668 self._file = None
2669
2670 def infodict(self):
2671 """

Callers 1

__exit__Method · 0.95

Calls 2

finalizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected