Code covered by the BSD License  

Highlights from
fillPage

4.5

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

fillPage

by Richard Quist

 

25 Sep 2007 (Updated 12 Oct 2007)

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

| Watch this File

File Information
Description

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
06 Dec 2007 Richard Tantaris

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

25 Jun 2010 Adam

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

06 Feb 2012 Abbas

Perfect code for creating PDFs from Matlab plots.

08 Feb 2012 Reza Farrahi Moghaddam  
Please login to add a comment or rating.
Updates
12 Oct 2007

updated keywords

Tag Activity for this File
Tag Applied By Date/Time
graphics import Richard Quist 22 Oct 2008 09:28:14
graphics export Richard Quist 22 Oct 2008 09:28:14
print Richard Quist 22 Oct 2008 09:28:14
export Richard Quist 22 Oct 2008 09:28:14
paperposition Richard Quist 22 Oct 2008 09:28:14
papersize Richard Quist 22 Oct 2008 09:28:14
margins Richard Quist 22 Oct 2008 09:28:14
resize Richard Quist 22 Jun 2010 11:40:14
page Richard Quist 22 Jun 2010 11:40:14
paper Richard Quist 22 Jun 2010 11:40:14

Contact us at files@mathworks.com