xyplt - 2D lines and points plot with OpenGL
[-s sleep] [file]
The xyplt(1) program plots and animates lines and points with different colors in 2D using OpenGL. The input file structure is quite simple.
options can be given.
Set the sleep time between time steps in the animation. The sleep time is given in milliseconds.
The input data is read from standard input or from the given file. The head of the file can contain comment lines, which start with an ’#’ character.
First, you can include the axes labels. The labels are optional and the default is "x" and "y".
box x y
This decribes the length of the sides of the three dimensional box in which the plotting is done. The default values are 1.0 1.0. The next expression is:
scale xmin xmax ymin ymax
This are the coordinate ranges for the cube in which the lines and points are drawn. The default is 0.0 1.0 0.0 1.0.
The animate statement tells xyplt(1) to read in nt data blocks, one for each time step. If this statement is not given, no animation is done.
This directive gives the number of line and points statements.
line red green blue n vertex-x vertex-y ...
This statement plots a line in the RGB colors red green blue with n vertices.
points red green blue n vertex-x vertex-y ...
This statement plots n points in the RGB colors red green blue.
This program was written by Ralph Trenkler <ralph-trenkler(at)t-online.de>.