Cannot print a figure using print()

8 ビュー (過去 30 日間)
TastyPastry
TastyPastry 2016 年 6 月 29 日
コメント済み: Walter Roberson 2016 年 7 月 1 日
Currently using the lines
set(fig,'paperpositionmode','manual');
set(fig,'paperorientation','landscape');
set(fig,'paperunits','normalized');
set(fig,'paperposition',[0 0 1 1]);
print(fig,filename,'-dpdf','-fillpage');
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)
print(fig,filename,'-dpdf','-fillpage');
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.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 6 月 29 日
The -fillpage and -resize options to print() are new as of R2016a.
  2 件のコメント
TastyPastry
TastyPastry 2016 年 6 月 30 日
Is there a way to view documentation for a past release? I keep finding cool features in 2016a that I can't use because I'm not on the most recent version.
Walter Roberson
Walter Roberson 2016 年 7 月 1 日
Note: people who do not have an active support contract might not be able to access that archived documentation.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by