GRAPH command
Syntax: |
GRAPH { 'legendtext' } x y { ye1 { xe1 { ye2 { xe2 }}}}
|
Qualifiers: |
\AXESONLY, \OVERLAY, \POLAR, \REPLOT, \HISTOGRAM, \YONRIGHT, \XONTOP, \SMOOTH
|
Defaults: |
axes drawn, \REPLOT, \-POLAR, \-HISTOGRAM, \-YONRIGHT,
\-XONTOP, \-SMOOTH, legendtext ignored
|
Examples: |
GRAPH X Y
|
command | ||
The GRAPH command draws: |
data with axes | GRAPH |
just the data | GRAPH\OVERLAY |
|
just the axes | GRAPH\AXESONLY |
|
y-axis on the right | GRAPH\YONRIGHT |
|
x-axis on the top | GRAPH\XONTOP |
|
smooth curve through the data | GRAPH\SMOOTH |
The data curve may be a histogram. The parameters must be vectors, but can be vectors of length one. The input vectors can have different lengths as the minimum length of all of the input vectors will be used.
Plotting symbols
Graph legend
Axis scaling
Polar coordinates
Plot data and axes
Plot axes only
Plot data only
Plot a smooth curve through the data
Draw the y-axis on the right
Draw the x-axis on the top
Replot data on a common scale
Histograms
Error bars
Fill the area under a curve
A basic example
A script to plot a curve with axes
Getting the axis numbers right