INCLAN: Graphics: Difference between revisions
(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, …') |
No edit summary |
||
Line 1: | Line 1: | ||
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. | 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. | ||
== Graphics file == | |||
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,... | 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,... |
Latest revision as of 18:24, 11 August 2009
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.
Graphics file
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.