This is a general xy plotting program. There can be an unlimited number of graphs loaded into the program at one time. Multiple curves can be drawn on each graph. Various attributes of the graphs can be controlled from the user interface or command line. Initial curve attributes are set from information stored in the input data file.
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing
To load a file enter its name in the field next to the "Plot filename" button, or press the "Plot filename" button to browse for the file. The file is expected to be in ASCII format with one line for each x/y coordinate pair and some special lines which are used to declare the start of a new plot, declare the start of each curve, and provide labels for the plot and axes. The nature of the special lines is set by the first character on the line; the special lines that are recognized are:
For one plot containing a single curve, the minimal input file would have its first line starting with T (to create the plot), the second line starting with L (to create the curve), and then the pairs of x and y coordinate data, one per line, after that. A slightly more involved example with labels and one plot with three curves (one solid, two shown as scatter plots) is show below:
THeat Shock Response XTime in heat shock (minutes) YProbe intensity (counts) LWild type 0 60 10 50 20 750 30 1000 40 1100 LStrain a!a!0 0 50 10 60 20 45 30 65 40 70 LStrain b!b!0 0 57 10 400 20 850 30 1200 40 1150
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing
Use the controls which appear just to the right of the "Graph #" button to jump between the different graphs that are present in the input file. The index of the plot currently on view is displayed in the text field and may be modified in order to jump directly to another graph. Alternatively, press the arrow key to the left of the text field to cause the previous graph to be displayed or the arrow key to the right of the text field to cause the next graph to be displayed. Rather than using the arrow buttons, the middle and right mouse buttons may be used while the pointer is in the graph window.
If the "all graphs" toggle is on, changes made to any curve attributes will be applied to all the graphs. When it is off, only the current graph will be changed.
If the "show legend" toggle is on, a legend, listing the labels for all curves in the graph and the corresponding combination of color and marker type, is shown at the bottom of the graph window. When the toggle is off the legend is not shown.
Use the "Scale..." button to the far right of the "Graph #" button to open a dialog with controls for the axis bounds, number of tick marks, and format of the tick mark labels.
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing
While the mouse is over the graph window, the mouse buttons have the following effects:
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing
Use the controls to the right of the "Curve #" button to modify the attributes for a curve. Immediately to the right of the "Curve #" button is a menu which shows the number of curve; the attributes of that curve are reflected in all the remaining controls on the line. If you select a different curve from the menu, then the attributes of the new curve will be shown.
The second menu displays the color used for the markers and lines belonging to the current curve and may be used to modify that color. The third menu displays the style of line used for the current curve and may be used to modify the style. There are two options available:
The fourth menu, immediately to the right of the "Symbol" button, displays the style of marker used for points on the current curve and may be used to change that style. There are four options available:
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing
The scaling dialog (to open it press the "Scale..." button in 2D Plot's main dialog) can be used to modify the range covered by the axes, the number of tick marks along each axis, and the labeling style for the tick marks. The "Reset" button in the scaling dialog restores the bounds for the x and y axes to their default values.
The number of decimal places specified for the tick mark labels is ignored when the tick mark labels are formatted as integers or the format is automatically chosen. To have the application automatically select the number of decimal places to use, use a value of -1 for the number of decimal places.
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing
The allowed format for 2D Plot's command line is (optional parameters or
arguments are show in brackets):
2d_plot [filename] [-nxtick nx] [-nytick ny] [-xminmax x_min x_max]
[-yminmax y_min y_max] [-xticklab x_style] [-yticklab y_style] [-xtickdec number] [ytickdec number]
The meanings of the different arguments and options are:
-nxtick-nytick-xminmax-yminmax-xticklab-yticklab-xticklab but
affects the style used for the tick mark labels on the y axis.
-xtickdec-ytickdec-xtickdec but
affects the number of decimal places in tick mark labels along the y axis.
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing
The printing dialog (to open it press the "Print..." button in 2D Plot's main dialog) can be used to generate a PostScript copy of the plot or print the plot. The controls in the dialog are:
Overview | Input file | Graph settings | Mouse | Curve attributes | Scaling | Command line | Printing