manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.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' adjust=off]

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. Ticks will be automatically adjusted if adjust=on (by call of adjust 'dir').

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. If string sch contains ‘<>^_’ then the parameter pos is defined as: pos=0 for ‘>’ (right), pos=1 for ‘<’ (left), pos=2 for ‘^’ (top), pos=3 for ‘_’ (bottom). If string have ‘A’ then absolute (relative to picture) coordinates is used. See section Dens sample, for sample code and picture.

MGL command: colorbar vdat ['sch'='' pos=0]

The same as previous but with sharp colors sch (current palette if sch="") for values v. See section ContD sample, for sample code and picture.

MGL command: colorbar 'sch' pos x y w h

The same as first one but at arbitrary position of subplot {x, y} (supposed to be in range [0,1]). Parameters w, h set the relative width and height of the colorbar.

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: box ['stl'='k' ticks=on]

Draws bounding box outside the plotting volume with line style ’stl’. If ticks=on then ticks are drawn with current axis setting.

MGL command: xlabel 'text' [pos=0 size=-1.4 shift=0]

MGL command: ylabel 'text' [pos=0 size=-1.4 shift=0]

MGL command: zlabel 'text' [pos=0 size=-1.4 shift=0]

MGL command: tlabel 'text' [pos=0 size=-1.4 shift=0]

Prints the label text for x-,y-,z-,t-axis (here ‘t’ is “ternary” axis t=1-x-y). 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. Parameter shift specify additional shifting of the label. See section Text printing (MGL).


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.