Run plotting code inside a safely managed PDF device.
with_pdf_device(output_path, width = 14, height = 8, context = "plot", plot_fn)None. Writes a PDF and closes device safely.
Character. Output path for the PDF file.
Numeric. PDF width in inches.
Numeric. PDF height in inches.
Character. Context label used in error messages.
Function. Plotting function to execute.