Maximum resolution for print function and figure size

11 ビュー (過去 30 日間)
Etpalmer
Etpalmer 2018 年 4 月 13 日
回答済み: Etpalmer 2018 年 4 月 24 日
I am trying to output high quality images in a format other than .fig. If I save a .fig file, I get a ~200MB file, however I want to produce a high resolution image of ~10MB to store the figure. When I try different combinations of figure sizes and resolutions I run into different errors.
For example,
FigureOne = figure('Position', [1 1 50000 8000], 'Visible', 'off'); print(FigureOne, Printname, '-dtiffn', '-r300');
will give an error that says the size of figure at this resolution in not supported: "Unable to create output using specified size and resolution. Specify a smaller value for the PaperPosition property of the figure or specify a smaller resolution value." In this case, is there a way to determine the maximum image size/resolution supported? If not, is there another way to produce a useful image?
Thanks,
Erik
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 13 日
When you save to the .fig are you using savefig() with the 'compact' option? That can reduce file size a fair bit.
Etpalmer
Etpalmer 2018 年 4 月 24 日
Thanks for this suggestion. With this option the one of my files cut the size by over half, while keeping all the resolution I needed. I will use it going forward. Thanks!

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

採用された回答

Etpalmer
Etpalmer 2018 年 4 月 24 日
I found the compact option suggested by Walter Roberson solved my issue.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by