XGRAPH - X GRAPHer
Graphs n[i] pairs of (x,y) coordinates, for i = 1 to nplot.
xgraph n= [optional parameters]
<binaryfile
Required Parameters:
n array containing number of points per plot
Optional Parameters:
nplot=number of n's number of plots
d1=0.0,... x sampling intervals (0.0 if x coordinates
input)
f1=0.0,... first x values (not used if x
coordinates input)
d2=0.0,... y sampling intervals (0.0 if y
coordinates input)
f2=0.0,... first y values (not used if y
coordinates input)
pairs=1,... =1
for data pairs in format 1.a, =0 for format 1.b
linewidth=1,1,... line
widths in pixels (0 for no lines)
linecolor=2,3,... line colors (black=0, white=1, 2,3,4 = RGB, ...)
mark=0,1,2,3,... indices of marks used to represent plotted points
marksize=0,0,... size of marks in pixels (0 for no marks)
x1beg=x1min value at which axis 1 begins
x1end=x1max
value at which axis 1 ends
x2beg=x2min value at which axis 2 begins
x2end=x2max
value at which axis 2 ends
Optional resource parameters (defaults taken
from resource database):
windowtitle= title on window
width=
width in pixels of window
height= height in pixels of window
nTic1=
number of tics per numbered tic on axis 1
grid1= grid lines on axis 1 - none, dot, dash, or solid
label1= label on axis 1
nTic2= number of tics per numbered tic on axis 2
grid2= grid
lines on axis 2 - none, dot, dash, or solid
label2= label on axis 2
labelFont= font
name for axes labels
title= title of plot
titleFont= font name for title
titleColor= color for title
axesColor= color for axes
gridColor= color for grid lines
style= normal (axis 1 horizontal, axis 2 vertical) or
seismic (axis 1 vertical, axis 2
horizontal)
Data formats supported:
1.a.
x1,y1,x2,y2,...,xn,yn
b. x1,x2,...,xn,y1,y2,...,yn
2.
y1,y2,...,yn (must give non-zero d1[]=)
3.
x1,x2,...,xn (must give non-zero d2[]=)
4.
nil (must give non-zero d1[]= and non-zero d2[]=)
The formats
may be repeated and mixed in any order, but if
formats 2-4 are used, the d1 and d2 arrays
must be specified including
d1[]=0.0 d2[]=0.0 entries for any internal occurences of format 1.
Similarly, the pairs array must contain place-keeping entries for
plots of formats 2-4 if they are mixed with both formats 1.a and
1.b.
Also, if formats 2-4 are
used with non-zero f1[] or f2[] entries, then
the corresponding array(s) must be fully specified including
f1[]=0.0
and/or f2[]=0.0 entries
for any internal occurences of format 1 or
formats 2-4 where the zero entries are
desired.
Note: n1
and n2 are acceptable aliases for n and nplot, respectively.
Example:
xgraph n=50,100,20 d1=2.5,1,0.33 <datafile
plots three curves with equally spaced x
values in one plot frame
x1-coordinates are x1(i) = f1+i*d1 for i =
1 to n (f1=0 by default)
number of x2's and then x2-coordinates for
each curve are read
sequentially from datafile.