Macro commands may be used either in macros or by sending the commands to DPlot via dynamic data exchange (DDE). Some commands are valid only in macros (noted by Macros Only). Commands sent to DPlot via DDE must be enclosed by square brackets [ ]. Macro commands should not include the brackets.
Command parameters shown in the descriptions below are placeholders for the actual values. Command parameters are either numeric values, equations that evaluate to numbers, or character strings. Character string parameters are always bound by double quotation marks. Equations must be preceded by an equals sign (=).
The pipe symbol (|) in the command syntax indicates that a parameter is optional, and should not be included in your macro unless otherwise noted.
All indices into arrays are 1-based, e.g. Curve1=1 refers to the first curve in a plot.
A 0x prefix for numbers in the descriptions below indicates hexadecimal notation; e.g. 0x0010 = 16.
JR/Viewer indicates that the command is supported by DPlot Jr or DPlot Viewer.
JR/Viewer indicates that the command is NOT supported by DPlot Jr or DPlot Viewer.
Sets error bar parameters for curve number curve. Set display=0 to turn error bars off, 1 to display positive error bars, 2 to display negative error bars, or 3 to display both positive and negative error bars. Add 4 for horizontal bars. If type=0, param1 specifies a fixed error bar value and param2 is ignored. If type=1, param1 specifies a percentage value for the error bars; param2 is ignored. If type=2, param1 and param2 specify absolute positive and negative error values, respectively. If type=3, param1 and param2 specify curve indices (1-based) to retrieve positive and negative error values from. If used, those curves are used only as error values and are not drawn.
color and frequency are optional parameters. color specifies the color of the error bars, = blue*2562+green*256+red. The color may also be expressed in hexadecimal as 0x00bbggrr. The frequency setting controls how many error bars are drawn. If frequency=0 or 1 (or is omitted), error bars are drawn at every data point, if=2, error bars are drawn at every other point, etc.
ErrorBarPenWidth macro command