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 or character strings; character string parameters are always bound by double quotation marks.
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.
[FunctionOfXY1Y2("function",Xstart,Xstop,dX)] |
|
Generates X,Y pairs between X=Xstart and Xstop with spacing dX using a function of X and/or one or more Y values from existing curves. Y values from existing curves are included in the equation as "Yn", where n is the index of the curve. You are limited to the first nine existing curves (Y1, Y2, ... Y9). Curves used in the equation must have monotonically increasing X values. Note that this command is a superset of the simpler Y=f(X) menu command; the function is not necessarily dependent on an existing curve.
The Xstart, Xstop, and dX arguments are optional. If Xstart and Xstop are not included and the function references one or more existing curves (Y1, Y2, etc.) then the overlapping extents of all referenced curves are used. If no existing curves are referenced but the plot does already have one or more curves, then the minimum and maximum X values for all curves are used for Xstart and Xstop. If the document is currently empty and Xstart and Xstop are not specified, then 0.0 and 1.0 are used. If dX is not specified and the document already contains one or more curves, then the number of points in the generated curve will be set to the maximum of the number of points for all existing curves, spaced evenly between Xstart and Xstop. If the document is empty, then the current maximum number of points (set with FileArrays) will be used.
For function syntax see the description of the Y=f(X) menu command and the list of available functions.
Page url: http://www.dplot.com/help/index.htm?functionofxy1y2_command.htm