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

8.3 Transformation matrix (MGL)

These commands control how and where further plotting will be placed. There is a curtain order of calling of these commands for the better plot view. First one should be subplot or inplot for specifying the place. After it a rotate and aspect. And finally any other plotting commands may be called. Alternatevely you can use columnplot for position plots in the column one by another without gap between plot axis (bounding boxes).

MGL command: subplot nx ny m [dx=0 dy=0]

Puts further plotting in a m-th cell of nx*ny grid of the whole frame area. This command set off any aspects or rotations. So it should be used first for creating the subplot. From the aesthetical point of view it is not recommended to use this command with different matrices in the same frame. The position of the cell can be shifted from its default position by relative size dx, dy.

MGL command: subplot nx ny m 'style'

The same as previous but space reserved for axis/colorbar is saved only if style contain: ‘L’ or ‘<’ – at left side, ‘R’ or ‘>’ – at right side, ‘A’ or ‘^’ – at top side, ‘U’ or ‘_’ – at bottom side.

MGL command: inplot x1 x2 y1 y2 [rel=off]

Puts further plotting in some region of the whole frame surface. This command allows one to create a plot in arbitrary place of the screen. The position is defined by rectangular coordinates [x1, x2]*[y1, y2]. The coordinates x1, x2, y1, y2 are normalized to interval [0, 1]. If parameter rel=on then the relative position to current subplot is used. This command set off any aspects or rotations. So it should be used first for creating subplot.

MGL command: columnplot num ind [d=0]

Puts further plotting in ind-th cell of column with num cells. The position is relative to previous subplot call (or inplot with rel=off). Parameter d set extra gap between cells.

MGL command: stickplot num ind tet phi

Puts further plotting in ind-th cell of stick with num cells. At this, stick is rotated on angles tet, phi. The position is relative to previous subplot call (or inplot with rel=off).

MGL command: rotate tetz tetx [tety=0]

Rotates a further plotting relative to each axis (x, z, y) consecutively on angles tetx, tetz, tety.

MGL command: rotate tet x y z

Rotates a further plotting around vector {x,y,z} on angle tet.

MGL command: aspect ax ay [az=1]

Defines aspect ratio for the plot. The viewable axes will be related one to another as the ratio ax:ay:az. For the best effect it should be used after rotate command.

MGL command: perspective val

Add (switch on) the perspective to plot. The parameter val ~ 1/z_eff \in [0,1). By default (val=0) the perspective is off.


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