WWW | Store | Account | Contact Us
SHAZAM Homepage

GRAPH

The GRAPH command provides an interface to the GNUPLOT program for preparing graphs and histograms. When the GRAPH command is used the graph is displayed in a separate window.

In general, the format is:

GRAPH depvar indeps / options

The available options are:

OPTION DESCRIPTION
append Specifies that the gnuplot command file is to be appended to gnuplot command files created with previous commands in the SHAZAM program.
axis By default, an x-axis and y-axis is drawn at x=0 and y=0. Use NOAXIS to omit the axes.
axisfmt Set the x-axis labels with the date format specified on the previous AXISFMT command. Description of the AXISFMT command is available in the SHAZAM Reference Manual. When this option is used the TIMEFMT option must also be specified.
beg= Sets a sample BEGgining for the particular GRAPH command. This sample size is in effect only for the GRAPH command with this option. If this option is not specified, the sample range for the current SAMPLE command is used.
commfile= Gives the filename for the gnuplot command file (8 characters maximum).
datafile= Gives the filename for the gnuplot data file (8 characters maximum).
device Specifies the type of device for gnuplot output. The default is the terminal screen. The option DEVICE=POSTSCRIPT sends output to a PostScript file. The gnuplot command set term gives the complete list of valid options.
end= Sets a sample ENDing for the particular GRAPH command. This sample size is in effect only for the GRAPH command with this option. If this option is not specified, the sample range for the current SAMPLE command is used.
groups= When the HISTO option is used SHAZAM normally places data into 6 groups. This option can be used to specify up to 60 groups. The values allowed for GROUPS= are 2, 3, 4, 5, 6, 10, 12, 15, 30 or 60.
histo Plots a HISTOgram for the variable specified on the GRAPH command. Only one variable can be specified. A few outliers may complicate the scaling of the histogram. Therefore, by default, the histogram is centered around the mean with a scale of 3 standard deviations on either side of the mean. When the RANGE option is specified, the scale of the histogram is based on the entire range of the data. See also the GROUPS= option.
key By default, a key is displayed in the upper right-hand corner. Use NOKEY to suppress the key.
line Used to draw a line connecting the data points and plot a symbol at each point.
lineonly Used to only draw a line connecting the data points. No symbols at the data points will be plotted.
noaxis By default, an x-axis and y-axis is drawn at x=0 and y=0. Use NOAXIS to omit the axes.
nokey By default, a key is displayed in the upper right-hand corner. Use NOKEY to suppress the key.
output= Gives the filename for the gnuplot output file (8 characters maximum) when the DEVICE= option is used. When DEVICE=POSTSCRIPT is used the default output filename is GNU.ps.
port= Use PORT=NONE to obtain gnuplot command and data files but no gnuplot output.
range Utilizes the entire RANGE of the data for plotting the histogram when the HISTO option is used.
time Plots the listed depvars sequentially against TIME. In this case, indep is not specified.
timefmt Specifies that the indep variable on the GRAPH command is a time date variable with a format as given on the previous TIMEFMT command. Description of the TIMEFMT command is available in the SHAZAM Reference Manual.
wide Creates a wider plot.