GridFrame

GridFrame ( planeIndex ;​ stroke ;​ color ;​ colorVariant )

Argument Type Range Default Note
planeIndex int 0..3 all
stroke num[] 0..1000 1 Dimension:[pt]
color rgba 0..255 black
colorVariant int -1..128 solid
Examples

GridFrame(all;​2;​gray)

GridFrame(xy;​3)

Description

By using the GridFrame() function it is possible to add a frame around the grid whose stroke and color can be varied. As the 1st argument, planeIndex, the constant xy or all is to be entered for 2-dimensional charts. In addition, for 3-dimensional bar and Gantt charts the plane constants xz and yz are available. The z-axis points in the direction of the viewer.

GRID_FRAME_01
1

OpenDrawing(250;​150)

2

ChartData(2.5 3.5 2.5;​

3

0.5 1.5 0.5)

4

LineChart(symbol+shadow;​on)

5

/* Set up styles. */

6

LineStyle(1;​poly;​1;​#3879aa)

7

LineStyle(2;​poly;​1;​#c002a0)

8

SymbolStyle(1;​circle;​5;​1;​#3879aa;​;​white)

9

SymbolStyle(2;​circle;​5;​1;​#c002a0;​;​white)

10

ShadowStyle(all;​2 2 3)

11

/* Set up axes. */

12

AxisLine(all;​0)

13

AxisMajorTicks(all;​0)

14

/* Set up grid. */

15

MajorGridLineWidths(all;​all;​0.25)

16

GridFrame(xy;​1;​gray) /* 1 pixel wide gray frame. */

17

CloseDrawing()

GRID_FRAME_01
Scroll to Top