ErrorBarData

ErrorBarData ( seriesIndex ;​ valueList1 ;​ valueList2 ;​ valueList3 ;​ valueList4 )

Argument Type Range Default Note
seriesIndex int 0..10000 all
valueList1 num[] -inf..+inf 0 Pos. x-error values
valueList2 num[] -inf..+inf 0 Neg. x-error values
valueList3 num[] -inf..+inf 0 Pos. y-error values
valueList4 num[] -inf..+inf 0 Neg. y-error values
Examples

ErrorBarData(1;​1 1.1 1.2 1 1.1;​0.5 0.6 1.0 0.9 0.8) /* X-errors. */

ErrorBarData(all;​;​;​1 1.1 1.2 1 1.1;​0.5 0.6 1.0 0.9 0.8 /* Y-errors. */

Description

By using the ErrorBarData() function, user-defined error values can be entered. Correspondingly, the 4th argument type = valueList should be set in the ErrorBars() function; otherwise, the ErrorBarData() function is ignored. Argument valueList1 contains the positive error values in the x-direction; argument valueList2 the negative error values in the x-direction. Arguments valueList3 and valueList4 represent the positive and negative error values in the y-direction. The list values are to be entered separated by spaces, tabs or line feeds. If the number of error values entered is smaller than the number of data points, then zeroes are used in place of the missing values.

ERROR_BAR_DATA_01
1

OpenDrawing(250;​150)

2

ChartData(7 15 20 24 26 22)

3

LineChart(;​on)

4

ErrorBars(1;​y;​both;​valueList)

5

ErrorBarData(1;​;​;​4 1 0 5 2 1;​4 2 2 5 2 3)

6

/* Set up styles. */

7

LineStyle(1;​poly;​1;​#4682b4)

8

/* Set up axes. */

9

Scaling(y;​linear;​0;​30)

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(x;​y;​0.25)

14

MajorGridLineWidths(y;​x;​0)

15

CloseDrawing()

ERROR_BAR_DATA_01
ERROR_BAR_DATA_02
1

OpenDrawing(250;​150)

2

ChartData(7 15 20 24 26 22)

3

ScatterChart(horizontal;​on)

4

ErrorBars(1;​;​;​valueList)

5

ErrorBarData(1;​4 1 1 5 2 1;​ 1 2 2 5 2 3)

6

/* Set up styles. */

7

SymbolStyle(all;​circle;​4;​0.75;​black;​;​white)

8

/* Set up axes. */

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

/* Set up grid. */

12

MajorGridLineWidths(x;​y;​0)

13

MajorGridLineWidths(y;​x;​0.25)

14

CloseDrawing()

ERROR_BAR_DATA_02
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×