Re: the width and dpi of an EPS, TIFF or JPEG file
- From: Richard Quist <rquist_nospam@xxxxxxxxxxxxx>
- Date: Thu, 13 Sep 2007 08:24:35 -0400
Mike wrote:
HiThe doc on the print command discusses this.
I have an output figure. And I do a little adjustment manually.
Then I save it as toa.fig
I want to output this figure as an EPS, TIFF or JPEG file with 15 cm
width and 600 dpi.
I use following commands:
open toa.fig
print -depsc -tiff -r600 Fig01.eps
Someone told me its width is smaller than 15 cm.
How do I know the width and dpi of an EPS, TIFF or JPEG file?
Is the previous command right?
thanks a lot.
Mike
The width of the output is controlled by the figure's paperposition
property, and you can specify the units to use as well. Assuming you
want the current figure's output to be 15cm x 15cm:
set(gcf, 'paperunits', 'centimeters', 'paperposition', [0 0 15 15]);
The -r (resolution) flag does set the resolution (DPI) but only for
MATLAB generated graphic formats; it is not honored for the formats that
are created via Ghostscript.
The tiff preview embedded in an eps file is always 150 DPI for figures
--
Richard Quist
Software Developer
The MathWorks, Inc.
.
- References:
- Prev by Date: export figure as TIFF
- Next by Date: regarding waitbars
- Previous by thread: the width and dpi of an EPS, TIFF or JPEG file
- Next by thread: Nonlinear Capacitance
- Index(es):
Relevant Pages
|
Loading