Navigation:  DPLOTLIB Functions >

DPlot_YFromX function

Print this Topic Previous pageReturn to chapter overviewNext page

int DPlot_YFromX(int Docnum, int CurveNum, double X, double *Y);

Returns an interpolated Y value for a given X from a specified curve in an XY plot.

Parameters

DocNum

Document index for a plot produced by a previous call to DPlot_Plot (1-32).

CurveNum

1-based curve index for the curve of interest.

X

X value for which you want an interpolated Y value.

*Y

Address of the Y value.

Return Values

-7

Failure to initialize DDE. Should never happen, but if it does then rebooting may be necessary.

-6

Could not find DPlot.

-5

Failure to establish a conversation for DocNum, most likely because that document has been closed (or was never created).

-4

Invalid DocNum.

-3

Error requesting Y value from DPlot, most likely related to using an old version. DPlot_ZFromXY requires DPlot or DPlot Jr version 2.1.0.2 or later.

-2

DocNum is not an XY plot.

-1

The point X is outside the extents of the referenced curve.

 1

Success.

 

 


Page url: http://www.dplot.com/lib/index.htm?dplot_yfromx_function.htm