man.bsd.lv manual page server

Manual Page Search Parameters

VERSAPLOT(3X) VERSAPLOT(3X)

versaplot - routines for creating vectors to be plotted on the versatec

int *option; char *p, *v;
float *x, *y; int *pen;
float *xoff, *xfac, *yoff, *yfac;
float *fact;
int *nibs;
float *xnow, *ynow, *dfact;
float *x,*height,*y,*angle; char *text; int *nc;
float *x,*y,*fpn,*height; int *ndec;
float array[],*axlen; int *npts,*inc;
float x[],y[]; int *npts,*lintyp,*inteq,*inc;
int *nchar; char *label; float *x, *y, *axlen, *angle, *fval, *dv;
int *msglvl;
float *x,*y,*xd,*yd; int *nx,*ny,*lmask;
int *n,pat[]; float x[],y[];
float *delta,x[],y[]; int *ne;

These subroutines generate a file of vectors and a parameter file which contains information necessary to rasterize the vectors. Plots must be called first to initialize variables and create files. Plot must be called last with pen = 999. These routines are obtained by the ld (1) option -lv. -lF77 -lI77 and -lm for example 'cc main.c -lv -lF77 -lI77 -lm'. The Versatec 'Versaplot Software Manual' provides descriptions and samples for each routine. Argument and function descriptions are as follows:


initializes internal plotting variables.
0
initiate raster process, 'parm' is used for parameter file name 'vector' is used for vector file name
1
initiate raster process, use p for parameter file name and v for vector file name
2
do not initiate raster process, use p for parameter file name and v for vector file name
processes straight line 'pen' moves with the 'pen' up or down
coordinate pair of the terminal position of the move
999
end of all plotting
-999
end of current plot
3
move to (x,y)
2
draw to (x,y)
-2
draw to (x,y), re-origin
-3
move to (x,y), re-origin
-12
draw to offset/scaled (x,y), re-origin
-13
move to offset/scaled (x,y), re-origin
12
draw to offset/scaled (x,y)
13
move to offset scaled (x,y)
sets special scale factors and offsets to be used by plot when called with pen equal plus or minus 12 or 13, x and y coordinates are adjusted as follows: xnew = (xold - xoff) / xfac, ynew = (yold - yoff) / yfac
changes the size of entire plot by the ratio of new to normal plot size for example fact equal 2 would double the plot size
changes the line width from 1 to 5 nibs wide
returns the current 'pen' position and drawing factor ratio
plots characters at various angles and sizes
starting position
height in inches
character string if nc is positive, integer symbol number if nc is negative
rotation angle in degrees
positive nc indicates number of characters to be plotted, negative nc indicates text is an integer symbol number, nc = -1 means move to (x,y), nc = -2 means draw to (x,y)
converts floating point number to decimal and plots it
number to be plotted
> 0
number of places to the right of decimal point
= 0
plot only integer portion and decimal point
= -1
plot only integer portion
< -1
absolute value ndec - 1 digits are right truncated from the integer portion
computes scale factors for use with line and axis subroutines. This routine returns the starting unscaled data value and the scaling factor to the next two elements beyond the start of array plus npts times inc
array of unscaled data
axis length in inches
number of points to be scaled in array
increment used in picking data from array, if positive the first unscaled value is a minimum with a positive scale factor, if negative the first unscaled value is a maximum with a negative scale factor
plots points from coordinate data arrays, coordinate data must be followed by scaling parameters set by scale
array of x values followed by scaling parameters
array of y values followed by scaling parameters
number of data values in each array
increment for picking data from array
magnitude of lintyp is the symbol plot frequency for plotted symbols
= 0
points connected by straight lines
> 0
points connected by straight lines with plotting symbols
< 0
only symbols plotted
symbol number of symbol to be used if symbol plotting
generates an axis line with labels and scales
starting position
character string used to label axis
number characters in label, positive values indicate all marking is done above the axis line, negative values indicate all marking is done below the axis line
length in inches of axis
angle of rotation of axis in degrees
first value for axis annotation at inch intervals
number of data points per inch
alters message level parameter (0-5) during execution
generates grid patterns
starting position
number of intervals in x direction, if nx is greater than 1000 then xd must be an array of intervals with nx - 1000 elements, negative nx suppresses vertical line generation
same as nx and xd only for y direction
bit pattern used to generate grid, 32 bits long
provides patterned shading for specified area(s), for more than one area shading is done in alternate overlapping areas. At least two calls to tone must be made to shade an area, the first call (last argument negative) sets the pattern and the second call (last argument positive) defines the area(s).
data arrays defining the area(s) to be shaded
integer array of either pattern elements (32 bits long) or number of elements specifying a particular area
if positive this is the number of areas defined in the x and y arrays, if negative this is the number of pattern elements (max 16) in the pattern array
generates a smooth continuous curve through a series of points
arrays of points to be joined
(absolute) number of points in arrays negative value indicates that the last two elements of each array are scale factors,
(absolute value) is the segment length for the incremental approximation of the curve, positive value specifies plotting with solid line, negative value specifies plotting with dashed line, positive value indicates the points are already scaled

vrast(1) Versaplot Software Manual

11/13/79 3rd Berkeley Distribution