Contents Previous Next Subchapters

Defining A Title For An Axis In The Current Viewport
Syntax gxtitle(title)
gytitle(title)
gztitle(title)
See Also xlabel ylabel zlabel , gtitle , gfont , gaddtext
Menu Command Graphics | Axis | Title . . .

Description
Displays title below the specified axis in the current viewport, where title is a character row vector.

Example
If you enter
     ginit
     theta = 0. : .1 : 2 * pi
     gplot(theta, sin(theta))
     gxtitle("theta")
     gytitle("sin(theta)")
O-Matrix will put the corresponding titles on the x and y axis.

Note that if there is not enough room for the titles, they will not be seen in the graphics window. You can increase the room for the titles, using the gspace function as follows:
     left  = .3
     right = .02
     below = .2
     above = .02
     gspace(left, right, below, above)

Mlmode
In Mlmode these functions are called xlabel, ylabel and zlabel instead of gxtitle, gytitle and gztitle respectively. If in Mlmode you enter,
     omginit;
     theta = 0. : .1 : 2 * pi;
     plot(theta, sin(theta));
     title('sin(theta)');
     xlabel('theta');
     ylabel('sin(theta)');
     omgspace(.3, .02, .2, .02);
O-Matrix will put the corresponding titles on the x and y axis.