Page 1 of 1

Error Bars

Posted: Thu Mar 04, 2004 10:55 am
by bmatlin
I am looking for documentation on how to set error bars, programatically. I am using VBA and would like to set a different error bar value for each data point.

Posted: Thu Mar 04, 2004 11:23 am
by DPlotAdmin
In the Help file click the Index button, then on the Index tab type Error..., you'll see 'ErrorBar Command'. Click that entry and you get:

[ErrorBar(curve,display,type,param1,param2)]

The pertinent part in your case is:

"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."

So... if you want different error values at each data point, you need an additional "curve" with Y values equal to the error. X values for this curve are irrelevant; the first Y in the error curve will be used as the error value for the 1st point regardless of X. You can use the same fake curve for both the positive and negative errors.

Please let me know if I haven't answered your question.