S P L O T / E S P L O T
Produces a plot of a spectrum. The plot is directed
to the device defined by the user variables 'SOFT' and
'HARD', and by the value of the command keyword 'HARDCOPY',
so will appear immediately if these specify a video
device (VT125, Args, etc.). If a hardcopy device
is specified, the file for that device will be produced,
but SPLOT does not attempt to spool it off for printing.
ESPLOT is similar to SPLOT, but plots error bars based on the
errors in the data.
Command parameters -
SPECTRUM The data to be plotted. If this contains X-axis
information, this will be used. If not, the X-axis
will just have to be the numbers from 1 to n.
XSTART The x-value at which plotting is to start.
XEND The x-value at which plotting is to end.
(XSTART and XEND are not required if WHOLE is set.)
HIGH The maximum value to be used for the plot.
LOW The minimum value to be used for the plot.
BIAS A value used to displace the plot - BIAS is
effectively a value added to the data before
it is plotted. (It is implemented as a value
subtracted from both HIGH and LOW.)
(HIGH,LOW and BIAS are not required if
AUTOSCALE is set.)
LABEL A label for the plot.
COLOUR The colour for the plot, assuming the display device
supports it. The axes are always white.
THICKNESS The width of the lines used for the plot. This is
only used for 'hard' & 'build' plots, and should
really be 1 for anything other than a high-resolution
device like a Versatec or a laser printer.
Command keywords -
AUTOSCALE The program is to work out the values for HIGH
and LOW, using the maximum and minimum values
in the data over the specified range.
WHOLE The program is to display all of the spectrum.
HARDCOPY The plot is to produce a hard copy.
AXES Axes will be plotted.
ERASE The screen will be erased before the plot.
LINES The plot is not done as a histogram, but as
a 'join the dots' line plot. (Only applies
to SPLOT.)
User variables - (">" input, "<" output)
(>) SOFT Specifies the device and type to be used for soft
plots. See the SOFT command for more details.
(>) HARD Specifies the device and type to be used for hard
plots. See the HARD command for more details.
(<) TVXST is set to the starting x-value for the plot.
(<) TVXEN Is set to the final x-value for the plot.
(<) TVHIGH Is set to the same value as HIGH.
(<) TVLOW Is set to the same value as LOW.
(<) TVFILE Is set to the value of SPECTRUM.
(<) TVCOLOR Is set to the GRPCKG code for the plot colour.
(The TV.. variables are intended for use by
cursor routines, and reflect the settings for the
last plot made, even if XSTART etc are changed.)
(Other user variables may be set by the command processor, in
connection with the parameter values.)
KS / CIT 30th April 1984
FIGARO A general data reduction system