MinorGridLineWidths

MinorGridLineWidths ( directionAxis ;​ distributionAxis ;​ stroke1 ;​ stroke2 ;​ . . . ;​ stroke1000 )

Argument Type Range Default Note
directionAxis int 0..3 all
distributionAxis int 0..3 all
stroke1 num[] 0..1000 1
stroke2 num[] 0..1000 1
... num[] 0..1000 1
stroke1000 num[] 0..1000 1
Examples

MinorGridLineWidths(x;​y;​0;​1)

MinorGridLineWidths(y;​x;​0)

Description

The minor grid functions work the same way as the major grid functions. Please note that the minor grid can only be activated by defining a minor interval number greater than 1 in the Scaling() function.

MINOR_GRID_LINE_WIDTHS_01
1

OpenDrawing(250;​150)

2

ChartData(1.5 2.5 1 3 2.5)

3

BarChart()

4

/* Set up styles. */

5

FillStyle(1;​crimson)

6

BorderStyle(all;​none)

7

/* Set up axes. */

8

Scaling(y;​linear;​;​;​3;​2) /* 3 major intervals, 2 minor intervals. */

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

AxisMinorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineColors(y;​x;​darkGray)

14

MajorGridLineWidths(y;​x;​0)

15

MinorGridLineColors(all;​all;​lightGray)

16

GridFrame(xy;​1;​gray)

17

CloseDrawing()

MINOR_GRID_LINE_WIDTHS_01
MINOR_GRID_LINE_WIDTHS_02
1

OpenDrawing(250;​150)

2

ChartData(1.5 3.5 0.8 3 2)

3

LineChart(symbol+shadow)

4

/* Set up styles. */

5

LineStyle(1;​poly;​1;​crimson)

6

SymbolStyle(1;​circle;​5;​1;​crimson;​;​white)

7

ShadowStyle(all;​2 2 3)

8

/* Set up axes. */

9

Scaling(y;​log;​;​;​3;​4)

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

AxisMinorTicks(all;​0)

13

/* Set up grid. */

14

MajorGridLineWidths(y;​x;​0)

15

MajorGridLineColors(x;​y;​gray)

16

MinorGridLineColors(x;​y;​lightGray)

17

GridFrame(xy;​1;​gray)

18

CloseDrawing()

MINOR_GRID_LINE_WIDTHS_02

Furthermore, a dash pattern can be assigned to the grid line width by adding a list of dash lengths and gaps.

MINOR_GRID_LINE_WIDTHS_03
1

OpenDrawing(250;​150)

2

ChartData(1.5 2.5 1 3 2.5)

3

BarChart()

4

/* Set up styles. */

5

FillStyle(1;​crimson)

6

BorderStyle(all;​none)

7

/* Set up axes. */

8

Scaling(y;​linear;​;​;​3;​2)

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

AxisMinorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(y;​x;​0)

14

MajorGridLineWidths(x;​y;​1)

15

MajorGridLineColors(x;​y;​#bbb)

16

MinorGridLineWidths(x;​y;​1 2 2)

17

MinorGridLineColors(x;​y;​#bbb)

18

CloseDrawing()

MINOR_GRID_LINE_WIDTHS_03

More dash pattern examples can be found under Dash Patterns.

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

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

×