closeFileDevice
quietly closes the current device: it does not print
the information of the next device.
The function openFileDevice
calls extname
to determine the
file type to be drawn in. Currently supported types include PDF
,
tiff
(tif
), bmp
, jpeg
(jpeg
). When the
file type is not recognized, the PDF
format is used as a fallback.
As an example, myplot.pdf
will triggers openning a PDF device,
newplot.png
a PNG device, and oldplot.tiff
a TIFF device,
whereas myfile.abc
will be openned as a PDF device.
For bitmap files like BMP
, JPEG
,PNG
and TIFF
, we
use inch
as the size unit in order to be compatible with PDF. And the
resolution is always set to 300dpi.Furthermore, JPEG quality is set to 90
instead of the default value 75, and TIFF do not use any compression. These
settings follow our practices for scientific publication while allowing
generic post-precessing of figures.