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

8.6 Text printing (MGL)

These commands draw the text. There are commands for drawing text in arbitrary place, in arbitrary direction and along arbitrary curve. It is possible to use arbitrary font-faces and parse many TeX commands. The Unicode text is supported. So sometimes you need to specify locale. The size argument control the size of text: if positive it give the value, if negative it give the value relative to defined by font command. See section Font styles.

MGL command: text x y 'text' ['fnt'='' size=-1.4]
MGL command: text x y z 'text' ['fnt'='' size=-1.4]

Draws unrotated text string text at position {x,y,z} with specified style fnt and size. By default parameters from font command are used.

MGL command: text x y dx dy 'text' [size=-1.4]
MGL command: text x y z dx dy dz 'text' [size=-1.4]

The command plots the string text at position {x,y,z} along direction {dx,dy,dz} with specified style fnt and size. By default parameters from font command are used.

MGL command: text ydat 'text' ['fnt'='' size=-1 zval=nan]
MGL command: text xdat ydat 'text' ['fnt'='' size=-1 zval=nan]
MGL command: text xdat ydat zdat 'text' ['fnt'='' size=-1]

The command draws text along the curve between points {xdat[i], ydat[i], zdat[i]} by font style fnt and with size size. The string fnt may contain symbols ‘t’ for printing the text under the curve (default), or ‘T’ for printing the text above the curve. The sizes of 1st dimension must be equal for all arrays xdat.nx=ydat.nx=zdat.nx. If array xdat is not specified then its an automatic array is used with values equidistantly distributed along x. If array zdat is not specified then z[i] = zval is used. See section Text sample, for sample code and picture.

MGL command: title 'text' ['fnt'='' size=-2]

Print string text as title of the picture (at the top of the picture). Can be used at any place (even inside subplot).

MGL command: fgets x y 'fname' [n=0 'fnt'='' size=-1.4]
MGL command: fgets x y z 'fname' [n=0 'fnt'='' size=-1.4]

Draws unrotated n-th line of file fname at position {x,y,z} with specified size. By default parameters from font command are used.


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