| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
10.7 Axis and Colorbar (MGL)
These commands draw the “things for measuring”, like axis with ticks, colorbar with ticks, grid along axis, bounding box and labels for axis. For more information see section Axis settings (MGL).
- MGL command: axis ['dir'='xyz']
Draws axes with ticks (see section Axis settings (MGL)) in directions determined by string parameter dir.If string contain the symbol ‘_’ then tick labels are not printed. Font for ticks labels is determined by command
font.
- MGL command: colorbar ['sch'=”
pos=0] Draws colorbar with color scheme sch (current scheme if
sch='') at edge of plot. Parameter pos specifies the position of colorbar: ‘0’ - at right (default), ‘1’ - at left, ‘2’ - at top, ‘3’ - at bottom. See section Dens sample, for sample code and picture.
- MGL command: grid ['dir'='xyz' 'pen'='B']
Draws grid lines perpendicular to direction determined by string parameter dir. The step of grid lines is the same as tick step for an
axis. The style of lines is determined by pen parameter.
- MGL command: xlabel 'text' [
pos=1 shift=0] - MGL command: ylabel 'text' [
pos=1 shift=0] - MGL command: zlabel 'text' [
pos=1 shift=0] Prints the label text for x-,y-,z-axis. The position of label is determined by pos parameter. If pos=0 then label is printed at the center of axis. If pos>0 then label is printed at the maximum of axis (default). If pos<0 then label is printed at the minimum of axis. The font size is 1.4 times larger than the one for ticks
font. Parametershiftspecify additional shifting of the label. See section Text printing (MGL).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
