View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.5 | 6 ratings Rate this file 15 Downloads (last 30 days) File Size: 2.86 KB File ID: #16566 Version:



Richard Quist (view profile)


25 Sep 2007 (Updated )

Quickly set figure properties so printed/exported figure will fill entire page.

| Watch this File

File Information

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.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
11 Feb 2017 James Liu


Comment only
16 Jul 2016 Antonio

very Good

03 Jan 2014 ahmed kaffel

didn't work

Comment only
16 Feb 2012 Kaare

Kaare (view profile)

works great on windows, but seems to have no effect on linux?

08 Feb 2012 Reza Farrahi Moghaddam

06 Feb 2012 Abbas

Abbas (view profile)

Perfect code for creating PDFs from Matlab plots.

25 Jun 2010 Adam

Adam (view profile)

This function (unfortunately) doesn't produce good output for subplots with outside legends.

06 Dec 2007 Richard Tantaris

Awesome! I've been looking for this for years.

01 Sep 2016

Updated license

Contact us