Error Bars
Moderator: DPlotAdmin
Error Bars
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.
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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.
[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.
Visualize Your Data
support@dplot.com
support@dplot.com