Saving a figure bigger than screen size

51 ビュー (過去 30 日間)
Alon Wengierko
Alon Wengierko 2015 年 5 月 12 日
コメント済み: Frederik Brasz 2017 年 6 月 20 日
I am trying to save a figure bigger than screen size, but it gets cut. How can I do it?
  1 件のコメント
Frederik Brasz
Frederik Brasz 2017 年 6 月 20 日
Found the answer in another thread.
Make the figure invisible before setting it's size with
set(fig, 'visible', 'off')

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

回答 (2 件)

Robbin van Hoek
Robbin van Hoek 2015 年 5 月 12 日
編集済み: Robbin van Hoek 2015 年 5 月 12 日
have you tried setting the outerposition bigger than the screensize?
full screen:
figure('units','normalized','outerposition',[0 0 1 1]);
twice sceensize:
figure('units','normalized','outerposition',[0 0 2 2]);

Alon Wengierko
Alon Wengierko 2015 年 5 月 12 日
編集済み: Alon Wengierko 2015 年 5 月 12 日
I tried:
function printpdf(h,outfilename)
set(h, 'PaperUnits','centimeters');
set(h, 'Units','centimeters');
pos=get(h,'Position');
set(h, 'PaperSize', [pos(3) pos(4)]);
set(h, 'PaperPositionMode', 'manual');
set(h, 'PaperPosition',[0 0 pos(3) pos(4)]);
print('-dpdf',outfilename);
I have made an script, and sometimes it plot it with the desired size and sometimes it is cut.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by