AxisMinorTicks
AxisMinorTicks ( axisIndex ; length ; stroke ; color ; colorVariant ; location )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
axisIndex | int | 0..10000 | all | |
length | num | 0..1000 | 3 | Dimension:[pt] |
stroke | num[] | 0..1000 | 1 | Dimension:[pt] |
color | rgba | 0..255 | black | |
colorVariant | int | -1..128 | solid | |
location | int | 1..3 | center |
Examples
AxisMinorTicks(all;2;;;;out)
AxisMinorTicks(y;3;1;gray;;in)
Description
By using the AxisMajorTicks() and AxisMinorTicks() functions, the appearance of the major and minor tick marks can be controlled. The line stroke and color can be varied by the arguments stroke, color and colorVariant. In addition, using the arguments length and location the length (in pixels) and alignment of the tick marks, can be controlled. Tick marks can either be positioned inside the chart (location = in), outside the chart (location = out) or half inside and half outside the chart (location = center). The default major tick marks are 5 pixels long and the minor ones 3 pixels long.
| AXIS_MINOR_TICKS_01 |
1 | OpenDrawing(250;155) |
2 | ChartData(4 10 13 15 16 19 25) |
3 | |
4 | /* Set up styles. */ |
5 | |
6 | SymbolStyle(1;circle;5;1;#4682b4;;white) |
7 | ShadowStyle(all;2 2 3) |
8 | /* Set up axes. */ |
9 | AxisOptions(y;;1) /* Move y-axis to the right. */ |
10 | |
11 | AxisMajorTicks(x;8;0.25;gray;;in) |
12 | AxisMajorTicks(y;6;0.25;gray;;out) |
13 | AxisMajorTickLabelOptions(x;in;;8) /* Move 8 pixels down. */ |
14 | AxisMajorTickLabelOptions(y;;3) /* Move 3 pixels right. */ |
15 | AxisMajorTickLabelTexts(y;"$|u|") |
16 | /* Set up grid. */ |
17 | MajorGridLineWidths(x;y;0) /* Hide horizontal grid lines. */ |
18 | MajorGridLineWidths(y;x;0) /* Hide vertical grid lines. */ |
19 |