OpenGroup

New in version 5.0

OpenGroup ( rotation )

Argument Type Range Default Note
rotation num -360..+360 0 Dimension:[deg]
Examples

OpenGroup()

OpenGroup(-90) /* Rotate group objects counter-clockwise by 90 degrees. */

Description

A group make it possible to:
• add a background to a group of objects.
• rotate a group of objects, i.e. charts, graphic primitives, groups, tables, tags, views.
Nested groups, i.e. groups within a group, are also possible.

Group structure:

OpenGroup(rotation)

/* ...  */

/* List of objects (charts, graphics primitives, groups, tables, tags, views) */

/* Hint: To precisely place a chart enclose the chart functions in  */

/*  OpenChart()...CloseChart().  */

/* ...  */

Background() /* Optional. */

BackgroundOptions() /* Optional. */

CloseGroup()

OPEN_GROUP_01
1

OpenDrawing(200;​100)

2

OpenGroup(20) /* Rotate clockwise by 20 degrees. */

3

AddRect(50;​25;​100;​50;​#afa;​solid;​3;​teal;​solid;​0 0 3)

4

CloseGroup()

5

CloseDrawing()

OPEN_GROUP_01
OPEN_GROUP_02
1

OpenDrawing(180;​100)

2

OpenGroup()

3

AddRect( 50;​25;​15;​15;​#d40019;​solid;​0)

4

AddRect( 70;​25;​15;​15;​#eb6d00;​solid;​0)

5

AddRect( 90;​25;​15;​15;​#f1cb00;​solid;​0)

6

AddRect(110;​25;​15;​15;​#cdea03;​solid;​0)

7

AddRect( 50;​45;​15;​15;​#82c900;​solid;​0)

8

AddRect( 70;​45;​15;​15;​#17b100;​solid;​0)

9

AddRect( 90;​45;​15;​15;​#00a7a6;​solid;​0)

10

AddRect(110;​45;​15;​15;​#0073a7;​solid;​0)

11

AddText(90;​75;​"Samples";​Arial;​12;​plain;​black;​center)

12

Background(#f3f6f2;​0;​0;​;​;​2 2 2;​lightGray)

13

BackgroundOptions(6;​12 12 8 12)

14

CloseGroup()

15

CloseDrawing()

OPEN_GROUP_02
OPEN_GROUP_03
1

OpenDrawing(180;​105)

2

OpenGroup(-20) /* Rotate counter-clockwise by 20 degrees. */

3

AddRect( 50;​25;​15;​15;​#d40019;​solid;​0)

4

AddRect( 70;​25;​15;​15;​#eb6d00;​solid;​0)

5

AddRect( 90;​25;​15;​15;​#f1cb00;​solid;​0)

6

AddRect(110;​25;​15;​15;​#cdea03;​solid;​0)

7

AddRect( 50;​45;​15;​15;​#82c900;​solid;​0)

8

AddRect( 70;​45;​15;​15;​#17b100;​solid;​0)

9

AddRect( 90;​45;​15;​15;​#00a7a6;​solid;​0)

10

AddRect(110;​45;​15;​15;​#0073a7;​solid;​0)

11

AddText(90;​75;​"Samples";​Arial;​12;​plain;​black;​center)

12

Background(whiteSmoke;​0;​3;​teal;​solid;​0 0 5;​gray)

13

BackgroundOptions(6;​6)

14

CloseGroup()

15

CloseDrawing()

OPEN_GROUP_03
OPEN_GROUP_04
1

OpenDrawing(320;​290)

2

SetThousandsSep(",")

3

OpenGroup(-30) /* Rotate counter-clockwise by 30 degrees. */

4

OpenChart(40;​70;​240;​150;​)

5

ChartData( 5 24 38 62 76 115;​

6

10 58 70 94;​

7

20 110)

8

GanttChart(label+shadow)

9

/* Set up styles. */

10

FillStyle(1;​steelBlue;​0;​darkGreen;​0;​darkRed)

11

FillStyle(2;​deepSkyBlue;​0;​steelblue;​shaded)

12

FillStyle(3;​yellowGreen)

13

BorderStyle(all;​none)

14

LabelStyle(1;​;​;​bold;​white)

15

LabelStyle(2;​;​;​bold;​white)

16

LabelTexts(2;​"Part 1 (|u|)";​"|u|")

17

LabelTexts(3;​"|u| days")

18

ShadowStyle(all;​2 2 3;​lightGray)

19

/* Set up axes. */

20

ScalingOptions(y;​on) /* y-scale top to bottom. */

21

AxisLine(all;​0)

22

AxisMajorTicks(all;​0)

23

AxisMajorTickLabelTexts(y;​"A";​"B";​"C")

24

/* Set up grid. */

25

MajorGridLineWidths(x;​y;​0)

26

MajorGridLineWidths(y;​x;​0.25)

27

ChartBackground(xy;​white;​solid;​1;​#888)

28

CloseChart()

29

Background(#f2f3f7;​;​0;​;​;​2 2 5)

30

BackgroundOptions(6)

31

CloseGroup()

32

CloseDrawing()

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

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

×