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

Method get_pagecount

lib/matplotlib/backends/backend_pdf.py:2700–2702  ·  view source on GitHub ↗

Return the current number of pages in the multipage pdf file.

(self)

Source from the content-addressed store, hash-verified

2698 figure.savefig(self, format="pdf", backend="pdf", **kwargs)
2699
2700 def get_pagecount(self):
2701 """Return the current number of pages in the multipage pdf file."""
2702 return len(self._ensure_file().pageList)
2703
2704 def attach_note(self, text, positionRect=[-100, -100, 0, 0]):
2705 """

Callers

nothing calls this directly

Calls 1

_ensure_fileMethod · 0.95

Tested by

no test coverage detected