Contents Previous Next Subchapters

Drawing Line Plots With Specified Style
Syntax gplot(xystyle)
gplot(xyzstyle)
See Also gplot(x, y, z) , gplot(x, y, z, style, levels)

Description
Plots each column of y as a curve with the specified style, where style is "solid", "dotted", "dashed", "triangle", "star", "square", "plus", "diamond", "dot", "cross", or "circle". The line width and symbol size are determined by the previous call to the gstyle function. The line color and arguments x, y, and z, have the same specifications as in gplot(x, y, z) .

Example
If you enter
     ginit
     x      = 0. : .2 : 2 * pi
     y      = [sin(x), cos(x)]
     gplot(x, y, "plus")
O-Matrix will draw the following plot



If you enter
     ginit
     y      = 0. : .2 : 2 * pi
     z      = cos(4 * y)
     x      = sin(4 * y)
     gplot(x, y, z, "dotted")
     grotate(30, 0, 70)
     gxtitle("x")
     gytitle("y")
     gztitle("z")
O-Matrix will draw the following plot