| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Store multiple matplotlib figures as pages in a PDF-file.
A PDFFigureContainer is initialized with a Path to a destination.
PDFFigureContainer.add_figure_page() is called to add current figure to the PDF.
# Make a container
container = PDFFigureContainer(Path(output_dir, "container.pdf"))
#
# Make a figure
#
# Add figure to pdf
container.add_figure_page()Install by pip install matplotlib-pdf
Additional options and uses are:
The example.py-script exemplifies by making three figures and passing them to a PDF-file.
It then overwrites the second page with a different figure. The end result is something like:
| Back | FazBrowse Home | New Git URL |