OpenGroup
New in version 5.0
OpenGroup ( rotation )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
rotation | num | -360..+360 | 0 | Dimension:[deg] |
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. */
| 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 | |
5 |
| OPEN_GROUP_02 |
1 | OpenDrawing(180;100) |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | Background(#f3f6f2;0;0;;;2 2 2;lightGray) |
13 | BackgroundOptions(6;12 12 8 12) |
14 | |
15 |
| OPEN_GROUP_03 |
1 | OpenDrawing(180;105) |
2 | OpenGroup(-20) /* Rotate counter-clockwise by 20 degrees. */ |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | Background(whiteSmoke;0;3;teal;solid;0 0 5;gray) |
13 | BackgroundOptions(6;6) |
14 | |
15 |
| 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 | |
9 | /* Set up styles. */ |
10 | |
11 | FillStyle(2;deepSkyBlue;0;steelBlue;shaded) |
12 | FillStyle(3;yellowGreen) |
13 | |
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 | |
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 | |
29 | Background(#f2f3f7;;0;;;2 2 5) |
30 | |
31 | |
32 |