CYANA Macro: graf: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
m (1 revision)
 
Line 7: Line 7:
== Description ==
== Description ==


Convert a graphics file into a Postscript plot file. If file has the
Convert an INCLAN graphics file with file name extension “.grf” into a Postscript file or a PDF file. If '''file''' has the extension .grf”, nothing happens. If ''file'' has the extension “.ps”, a Postscript file ''file''.'''ps''' is produced from the input graphics file ''file''.'''grf'''. In all other cases a file with the given name and file name extension is produced, where the extension defines the type of the output file. The external Linux command '''ps2'''''xxx'' is used to convert the intermediate Postscript file into the output file ''file.xxx'' of type ''xxx''. For instance, the command '''graf plot.pdf''' will read the input INCLAN graphics file '''plot.grf''' and convert it into the PDF file '''plot.pdf'''. If the option '''replace''' is set, then the graphics file is removed after the conversion.
extension ".grf", nothing happens. Otherwise a Postscript file is produced
from the corresponding graphics file with extension ".grf". If the option
replace is set, then the graphics file is removed after the Postscript
file has been produced.

Revision as of 14:04, 7 August 2009

Parameters

file=filename.ps (required)
replace

Description

Convert an INCLAN graphics file with file name extension “.grf” into a Postscript file or a PDF file. If file has the extension “.grf”, nothing happens. If file has the extension “.ps”, a Postscript file file.ps is produced from the input graphics file file.grf. In all other cases a file with the given name and file name extension is produced, where the extension defines the type of the output file. The external Linux command ps2xxx is used to convert the intermediate Postscript file into the output file file.xxx of type xxx. For instance, the command graf plot.pdf will read the input INCLAN graphics file plot.grf and convert it into the PDF file plot.pdf. If the option replace is set, then the graphics file is removed after the conversion.