exporting plot as .tiff image

2 ビュー (過去 30 日間)
douglas
douglas 2012 年 4 月 5 日
I am trying to save a plot gathered from data in a text file as a .tiff image. When I use the command saveas(gcf,'results.tiff') it sends the figure out as a tiff image but it seems to resize the image. the axis are compressed and the graphs not as easily read. Is there a way to insure that the exported tiff image look identical to and share the same size and appearance as the created plot?

採用された回答

Walter Roberson
Walter Roberson 2012 年 4 月 5 日
There are several possible answers to this:
  1. check your figure PaperPosition and PaperPositionMode, and read about the figure ResizeFcn . If you do not set the PaperPosition manually, then the image of the figure could get resized to fit the page, and as the aspect ratio of the paper would usually not match what you have on the screen, the result might look ratty. But if you do set the PaperPosition so you can control the aspect ratio, then the ResizeFcn will get called to allow you to layout the page differently (e.g., you might be doing landscape and the wider page might allow you to use fewer rows for a text area, so that area might get shorter, and all kinds of things might have to move to look good.)
  2. http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.
  1 件のコメント
douglas
douglas 2012 年 4 月 5 日
I got some clues online and tried this out:
figure('position', [0 0 800 1100], 'PaperPositionMode', 'auto');
and it seemed to fix the issue! Thanks again.

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

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by