Table of contents


NAME

tkvecs - convert tektronix plot file to formatted vector file

SYNOPSIS

tkvecs

DESCRIPTION

Tkvecs decodes a Tektronix 4010 or 4014 plot file and writes the commands into a formatted text file as vector commands. Such a file is not directly plottable, but can be used as input to the SLIDES interpretive graphics system. For example, this would allow output from grapht to have additional labels added to it, or to be used as an inset in a larger plot.

The user is prompted to supply the names of the input and output files, as well as the following:

Plot size in inches (blank line for default)

Window boundaries (XMIN,XMAX,YMIN,YMAX) (blank line for default)

Whether nor not to select specific plot frames (Y or N). If the response is 'Y', then as each frame is encountered, a Y or N response will be required to plot or skip the frame.

Input errors result in a message and a request to re-enter the data. Each response must be on a single line of not more than 72 characters.

The format of the vector file, VCFILE, is (I2,4I4,F10.3). The first two columns contain a code which, depending upon its value, may be folowed by up to five additional numerical fields:

(Initialize new frame) The following five fields contain: the four window extents XMIN,XMAX,YMIN,YMAX, which take values 0-4096; and, the size of the unit square, in cm.

(Terminate frame) No additional data are present.

(Move) The two following fields contain the absolute integer (X,Y) coordinates (0-4096).

(Line) The two following fields contain the absolute integer (X,Y) coordinates (0-4096).

Tkvecs optimizes the vector file by discarding duplicate vectors and deleting intermediate vectors which are on the same line as preceding and following ones. The optimization code requires the ability to compute exact integer products of coordinate differences, which requires that integers of at least 25 bits be available.


FILES

/usr/local/plot79/tkvecs.sf3
source code for tkvecs
/usr/local/plot79/tkvecs
executable file

SEE ALSO

document (1L), drawit(1L), grapht(1L), graph3t(1L), lptops(1L), pfort(1L), piechtt(1L), plot79-intro(1L), plot79(1L), pluto(1L), pretty(1L), rdinfo(1L), sf3(1L), slides(1L), tekalw(1L), tmacro(1L), world(1L)

AUTHOR

This routine was adapted from TKCONV, which outputs a plot file to a new <PLOT79> device.

Nelson H. F. Beebe, Ph.D.

Center for Scientific Computing

South Physics Building

University of Utah

Salt Lake City, UT 84112

Tel: (801) 581-5254

(Manual page by R. P. C. Rodgers, Computer Applications in Laboratory Medicine Project, UCSF, San Francisco, CA 94143).