fillPage allows you to easily adjust properties that affect the size and position of a figure to be printed/exported, so that the generated output will "fill" the page within specified (or default) margins.
fillPage returns the original property values in a structure, allowing them to be restored/reset after printing.
fillPage also allows you to optionally specify a margin to use, as well as the size/type of paper (A4, usletter, 12x15) to output to.
Richard Quist (2021). fillPage (https://www.mathworks.com/matlabcentral/fileexchange/16566-fillpage), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
good
very Good
didn't work
works great on windows, but seems to have no effect on linux?
Perfect code for creating PDFs from Matlab plots.
This function (unfortunately) doesn't produce good output for subplots with outside legends.
Awesome! I've been looking for this for years.