Contents Prev Manual

PROGRAM GRAFIC

Description:

Program to draw scatter graphs and curves from tables of numbers using the PGPLOT plotting routines.

Input:

A Table or tables of numbers some of which are to be plotted
A header is prefixed to the table to indicate what to plot. It should contain the lines:
Title Text which will be used as a title for the graph (see the PGPLOT manual to insert greek chatacters, subscripts etc)
Xaxis Label for the x-axis
Yaxis Label for the y-axis
Range xmin xmax ymin ymax
the ranges of values in x and y to be plotted. If range is not given the program will try to choose a suitable one.

Then for each set of y-values in the table which follows
Point n1 n2 red circle filled
The first number (n1) identifies the set of y-values, and the second (n2) is a multiplier for the symbol size. The remaining text describes the graph markers. The options for colours are : black, red, green, blue, orange, magenta, azure and gold
The options for the shape are: circle, square, triangle, star','plussign, time(egg timer) and asterix'
The words are recognised independent of case; only the first four characters are significant. The shapes: circle, square, triangle, star and time may be "filled" or "open".

The line which immediately preceeds a table for a scatter plot should be:
Datap nc ix idx iy1 idy1 iy2 idy2 ........
nc is the number of columns in the table they should be separated by
spaces or commas (not tabs).
ix is the number of the column containing the x values
idx is the number of the column containing the esd's in x or 0 if error bars in x are not required
for each set of y values iyn is is the number of the column containing these y values idyn is the number of the column containing the esd's in y or 0 if error bars in these y's are not required.

To plot curves the table giving the points to be joined should be preceeded by lines describing the type of line to draw:
Cline: n iw colour type
n identifies to which curve in the next table it applies iw is an integer which fixes the width of line to be drawn (the graph the allowed "colours" for lines are the same as for graph markers. the "type" of line is one of: full, dashed, dado(dash dot), dotted, or dadd(dash dot dash)

The line which immediately preceeds a table giving points on a curve (or line) should be :
Curve: nc ix iy1 iy2 ........
nc, ix and iyn have the same meanings as for Datap (see above)

Calls:

ASK ERRMES GMZER INITIL JFIX JGMEQ JGMZER LENGT LERCHK MESS NCFIND NOPFIL PSFILE RDINTG RDNUMS RDREAL RDWORD SAID SAYS UPONE

Common blocks used:

/IOUNIT/ to use LPT ITO LUNI
/PGFILE/ to use all members

*** GRAFIC incorporated in MAI by PJB 17-Oct-2000 ***

Classification:

Graphical Output . . . . . . . Main Program


Contents Manual

P. Jane Brown e-mail: brown@ill.fr
Institut Laue Langevin,
Grenoble, FRANCE