Cannot print a figure using print()

24 views (last 30 days)
TastyPastry on 29 Jun 2016
Commented: Walter Roberson on 1 Jul 2016
Currently using the lines
set(fig,'paperposition',[0 0 1 1]);
to print a figure. Receiving error:
Error using checkArgsForHandleToPrint>LocalString2Handle (line 170)
Problem reading figure handle in -f switch: '-fillpage'.
Error in checkArgsForHandleToPrint (line 43)
Error in print>LocalCreatePrintJob (line 336)
handles = checkArgsForHandleToPrint(0, varargin{:});
Error in print (line 153)
[pj, inputargs] = LocalCreatePrintJob(varargin{:});
Error in dispPressures>savePlots (line 1088)
Error while evaluating UIControl Callback
I'm trying to print out a figure with two axes onto a PDF in landscape format and with the printout filling the entire page. I would prefer to use '-bestfit', but that gives me an illegal option error. Running 2015a.

Answers (1)

Walter Roberson
Walter Roberson on 29 Jun 2016
The -fillpage and -resize options to print() are new as of R2016a.
Walter Roberson
Walter Roberson on 1 Jul 2016
Note: people who do not have an active support contract might not be able to access that archived documentation.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!