sunpeek.core_methods.dcam_lite_collective.plotting.create_pdf_report#
- sunpeek.core_methods.dcam_lite_collective.plotting.create_pdf_report(dcam_output, settings=None, fig_list=None, filename=None, export_folder=None, add_page_numbers=True, add_page_number_first_page=False, **kwargs)#
Combine matplotlib figures into a pdf report and save file to disk. Als add page numbers and metadata to pdf file.
- Parameters:
dcam_output (
results.DCAMYieldOutput) – Main object to hold the data used to create the plots.settings (
pu.PlotSettings) – Settings used by the variousDCAMYieldPlotsmethods.fig_list (
List[matplotlib.figure.Figure]) – List of matplotlib figures used to create Iffig_listis None, will create all figures usingplot_all().filename (
str, optional) – The generated pdf report will be saved under this name, with extension “.pdf”. If None, a default filename is generated, based on the D-CAM settings.export_folder (
Union[str,Path], optional) – Folder to which the pdf file is saved. If None, a temporary folder is used.add_page_numbers (
bool, optional) – If True, page numbers are addedadd_page_number_first_page (
bool, optional) – If False, first report page (cover page, seeplot_cover()) has no page number.
- Return type:
Optional[Path]
Notes
kwargs are passed to individual plot methods of DCAMYieldPlots class via
plot_all().- square_axis_rangeList
Axes limits (minimum and maximum), used for x and y axis in
plot_square().
- y_ratio_limitsList
Axes limits (minimum and maximum), used for y axis in
plot_time().
- axes_limits_interval_plotsdict
Maximum y axis limits, used for the subplot axes in
plot_intervals(). Must contain keys ‘te_max’, ‘rd_max’, ‘tp_max’, ‘vf_sp_max’.