# FreeBSD Manual Pages

PLOT3(5) BRL-CAD PLOT3(5)NAMEplot3 - 3-D and color graphic plotting interfaceDESCRIPTIONFiles of this format are produced by programs such aspixhist3d-plot3(1), using the routines described inlibplot3(3) and are interpreted for various devices by standard programs described inplot(1G), as well as additional programs such asplot3-fb(1). The format of output fromlibplot3differs from that oflibplotonly in the addition of 3-D primitives and color. A graphics file is a stream of plotting instructions. Each instruction consists of an ASCII letter usually followed by bytes of binary information. The instructions are executed in order. A point is designated by four bytes representing thexandyvalues; each value is a signed 16-bit integer. These integers are written with the most significant byte first. Three-dimensional data have an additionalzvalue, which is assumed to be zero for two-dimensional instructions. The last designated point in anl,m,n,p,L,M,N, orPinstruction becomes the "current point" for the next instruction. Each of the following descriptions begins with the name of the corresponding routine inlibplot3(3).mmove: The next four bytes give a new current point.ncont: Draw a line from the current point to the point given by the next four bytes. Seeplot(1G).ppoint: Plot the point given by the next four bytes.lline: Draw a line from the point given by the next four bytes to the point given by the following four bytes.tlabel: Place the following ASCII string so that its first character falls on the current point. The string is terminated by a new-line.aarc: The first four bytes give the center, the next four give the starting point, and the last four give the end point of a circular arc. The least significant coordinate of the end point is used only to determine the quadrant. The arc is drawn counter-clockwise.ccircle: The first four bytes give the center of the circle, the next two the radius. Circles and arcs are not supported on all devices.eerase: Start another frame of output.flinmod: Take the following string, up to a new-line, as the style for drawing further lines. The styles are "dotted", "solid", "longdashed", "shortdashed", and "dotdashed". Effective only for the-T4014and-Tveroptions ofplot(1G) (TEKTRONIX 4014 terminal and Versatec plotter).sspace: The next four bytes give the lower left corner of the plotting area; the following four give the upper right corner. The plot will be magnified or reduced to fit the device as closely as possible. The following were added at BRL. Three-dimensional primitives have theirzvalues ignored when displayed on two-dimensional devices.Ccolor: The next three bytes give respectively the intensities (0..255) of the three color components (additive colors red, green, and blue if a terminal; subtractive colors cyan, magenta, and yellow if hardcopy) to be used for subsequent plotting. The initial color is assumed to be (255,255,255), which is white on a terminal and black on hardcopy. Color specifications are ignored for black-and-white devices.M3move: The next six bytes give a new current point.N3cont: Draw a line from the current point to the point given by the next six bytes. Seeplot(1G).P3point: Plot the point given by the next six bytes.L3line: Draw a line from the point given by the next six bytes to the point given by the following six bytes.S3space: The next six bytes give the minimum corner of the plotting area; the following six give the maximum corner. The plot will be magnified or reduced to fit the device as closely as possible.F3flush:xdouble_point: The double-precision version of point.vdouble_line: The double-precision version of line.odouble_move: The double-precision version of move.qdouble_cont: The double-precision version of cont.wdouble_space: The double-precision version of space.idouble_circle: The double-precision version of circle.rdouble_arc: The double-precision version of arc.Wdouble_3space: The double-precision, 3_D version of space.Xdouble_3point: The double-precision, 3_D version of point.Odouble_3move: The double-precision, 3_D version of move.Qdouble_3cont: The double-precision, 3_D version of cont.Vdouble_3line: The double-precision, 3_D version of line. Space settings that exactly fill the plotting area with unity scaling appear below for devices supported by the filters ofplot(1G). The upper limit is just outside the plotting area, except for the Megatek which displays the entire range of possible coordinates. In every case the plotting area is taken to be square; points outside may be displayable on devices whose face is not square.DASI300space(0, 0, 4096, 4096);DASI300sspace(0, 0, 4096, 4096);DASI450space(0, 0, 4096, 4096); TEKTRONIX 4014 space(0, 0, 3120, 3120); Versatec plotter space(0, 0, 2048, 2048); Megatek display space(-32768, -32768, 32767, 32767);SEE ALSOlibplot3(3),plot(n).graph(1G),plot(1G) in theUNIXSystemUserReferenceManual.AUTHORDouglas A. Gwyn made the 3-D and color extensions to UNIX-plot.COPYRIGHTThis software is Copyright (c) 1989-2019 by the United States Government as represented by U.S. Army Research Laboratory.BUG REPORTSReports of bugs or problems should be submitted via electronic mail to devs@brlcad.org BRL-CAD 08/27/2021 PLOT3(5)

NAME | DESCRIPTION | SEE ALSO | AUTHOR | COPYRIGHT | BUG REPORTS

Want to link to this manual page? Use this URL:

<https://www.freebsd.org/cgi/man.cgi?query=plot3&sektion=5&manpath=FreeBSD+13.0-RELEASE+and+Ports>