It is possible to display a 2D axis with 2D plots using the [-axis2d] argument. By default, 2D plots are displayed without axes.
When displaying a 2D plot, the plot type can be specified using the [-ptype2d] argument. There are six valid plot types which are as follows:
""
1 - Line
2 - Discrete
3 - Bar Graph
4 - Poly Marker
5 - Line Marker
A line type can also be specified when displaying 2D plots using the [-ltype2d] argument. There are seven valid line types which are as follows:
""
1 - Solid
2 - Dotted
3 - Dot Dash
4 - Short Dash
5 - Long Dash
6 - Odd Dashed
7 - Grid Dotted
A marker type can be specified when displaying 2D plots using the [-mtype2d] argument. Note that marker type only has an effect when plot type is set to Poly Marker or Line Marker. There are sixteen valid marker types which are as follows:
""
1 - Arc
2 - Bow Tie
3 - Box
4 - Caret
5 - Circle
6 - Cross
7 - Dagger
8 - Diamond
9 - Dot
10 - Hexagon
11 - Point
12 - Square
13 - Triangle
14 - V
15 - X
16 - Pixel
A plot foreground color can be specified when displaying 2D plots using the [-pcolor2d] argument. Note that the plot color is not used with plot types that are automatically colored such as color marker and color line. The plot color can be any valid color supported on your display. For a list of available colors, run the command % xcolors.
By default, the visualization display will share its colormap with all other applications running at the same time; that is, it does not not use a "private colormap", but rather makes use of the "default colormap". It is possible to specify that the visualization display allocate its own private colormap or "grab" all available colors for its own use. This is done using the [-priv] argument. When [-priv] is specified, moving the mouse pointer into the display window will cause the display to have its private colormap installed; moving the pointer out of the display window will cause the private colormap to be de-installed. This results in the technoflashing phenomenon characteristic of private colormap installation.
Color allocation can also be controlled and set to either "read-only" or "read/write" using the [-alloc] argument. When set to "read only", once a color cell has been allocated, it can have its color set only once; from then on, the color cell can be shared by multiple applications, but not changed. If the visualization display requires the color displayed to change, it must re-allocate the color cell, forcing a re-display of data. This can be an expensive procedure. In contrast, after a "read/write" color cell is allocated, it can have its color changed at any time without re-allocation; the data being displayed does not need to be redisplayed, and the color update process is much more efficient. However, the colors used in the visualization display cannot be shared by other applications.
The input file containing the data to be plotted is monitored by default; the file is checked every 2 seconds for change, and if it has been modified, the plot is updated accordingly. The interval at which the input file is checked for modification may be specified using the [-update] argument.
On creation, the plot display window may be placed manually (the default method), or placed automatically. For automatic placement of the plot window, specify the desired location in device (screen) coordinates using the [-x] and [-y] arguments.
While the display window should be created with a default size that is appropriate to plot the data, a width and height for the window can be specified explicitly using the [-width] and [-height] arguments, where values represent number of pixels. Alternatively, you may allow the plot window to size itself initially, and then use the window manager to interactively modify its size as desired.
% putplot2 -i plot2d:sine