INCLAN: Graphics

From CYANA Wiki
Revision as of 18:24, 11 August 2009 by Guentert (talk | contribs) (Created page with 'With INCLAN it is possible to produce graphical output in Postscript format. Graphics is created with the built-in command plot. The plot command can either be invoked directly, …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

With INCLAN it is possible to produce graphical output in Postscript format. Graphics is created with the built-in command plot. The plot command can either be invoked directly, or plot subcommands can be combined with list data in graphics files that can be read with the plot file command.

A graphics file can contain one or several blocks of list data, i.e. matrices of integer or real numbers in free format. Each row (line) of a list data block must have the same number of entries. The columns of a list data block form vectors called x, y1, y2,... If a list data block consists of a single column with n numbers, this column is called y1 and an x-column with values 1, 2,…, n is added implicitly. After reading a block of list data, the graphics system is in list mode, and various plot subcommands can be applied to vector expressions formed from the column vectors of the list data block. These vector expressions are general Fortran-77 expressions that are evaluated for all vector elements and where the column vectors x, y1, y2,... are denoted by x, y1, y2,...

Besides list data, a graphics file can contain plot subcommands (and comments starting with #) but not other commands; it is not an INCLAN macro.

Plot subcommands

The alphabetical list contains all plot subcommands. They are called from INCLAN in the form

plot subcommand parameters

and in graphics files in the form

subcommand parameters

Some of the plot subcommands have different parameters in normal and list mode as indicated by “(normal mode)” or “(list mode)” at the right margin.