CurveFittingLineStyle

CurveFittingLineStyle ( seriesIndex ;​ type ;​ stroke ;​ color ;​ colorVariant )

Argument Type Range Default Note
seriesIndex int 0..10000 all
type int -5..6 linear
stroke num[] 0..1000 1 Dimension:[pt]
color rgba 0..255 black
colorVariant int -1..128 solid
Examples
Description

The CurveFittingLineStyle() function can be used to control the appearance of the curves. The line stroke (thickness, dash pattern) and color can be varied using the arguments stroke, color and colorVariant. Unless otherwise defined, the curves are black and one-pixel wide.

CURVE_FITTING_LINE_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData(54 23 7 69 70 94 43 56 85 13)

3

ScatterChart(;​on)

4

CurveFitting(1;​5)

5

CurveFittingLineStyle(1;​5;​0.5;​#c002a0)

6

/* Set up styles. */

7

SymbolStyle(1;​bullet;​4;​1;​#4682b4;​shaded)

8

/* Set up axes. */

9

Scaling(y;​linear;​0;​100;​5)

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(all;​all;​0.25)

14

GridFrame(xy;​0.5;​#888)

15

CloseDrawing()

CURVE_FITTING_LINE_STYLE_01
CURVE_FITTING_LINE_STYLE_02
1

OpenDrawing(250;​150)

2

ChartData(54 23 7 69 70 94 43 56 85 13;​ /* x-values. */

3

15 59 72 12 47 21 52 75 67 95) /* y-values. */

4

ScatterChart2D()

5

CurveFitting(1;​3)

6

CurveFittingLineStyle(1;​3;​1 6 3;​#c002a0)

7

/* Set up styles. */

8

SymbolStyle(1;​bullet;​3;​1;​#4682b4)

9

/* Set up axes. */

10

Scaling(y;​linear;​0;​100;​5)

11

AxisLine(all;​0)

12

AxisMajorTicks(all;​0)

13

/* Set up grid. */

14

MajorGridLineWidths(all;​all;​0.25)

15

GridFrame(xy;​0.5;​#888)

16

CloseDrawing()

CURVE_FITTING_LINE_STYLE_02
CURVE_FITTING_LINE_STYLE_03
1

OpenDrawing(250;​150)

2

ChartData(54 93 7 69 70;​ /* 1st series: x-values. */

3

90 33 53 80 33;​ /* 1st series: y-values. */

4

5 59 76 24 47;​ /* 2nd series: x-values. */

5

29 52 70 67 95) /* 2nd series: y-values. */

6

ScatterChart2D()

7

CurveFitting(all;​1)

8

CurveFittingLineStyle(1;​1;​2;​#4682b480)

9

CurveFittingLineStyle(2;​1;​2;​#c002a080)

10

/* Set up styles. */

11

SymbolStyle(1;​bullet;​3;​1;​#4682b4)

12

SymbolStyle(2;​bullet;​3;​1;​#c002a0)

13

/* Set up axes. */

14

Scaling(y;​linear;​0;​100;​5)

15

AxisLine(all;​0)

16

AxisMajorTicks(all;​0)

17

/* Set up grid. */

18

MajorGridLineWidths(all;​all;​0.25)

19

GridFrame(xy;​0.5;​#888)

20

CloseDrawing()

CURVE_FITTING_LINE_STYLE_03
Scroll to Top