Contents Previous Next Subchapters

Drawing Line Plots Z denoted by Color
Syntax gplot(xyzstyle, "levels")
See Also glevel , and gplot(x, y, z, style)

Description
Plots each column of y as a curve that changes color depending on the value of z. The values of z at which the colors change are specified by the previous call to glevel . The corresponding color values are specified by the previous call to gcolor . The arguments x, y, and z, have the same meaning as in gplot(x, y, z) . The argument style has the same meaning as in gplot(x, y, z, style) .

Example
If you enter
     ginit
     y      = {-1, 0, 1}
     x      = y
     z      = y
     levels = {-.5, 0, .5}
     colors = {"red", "black", "green", "blue"}
     glevel(levels)
     gcolor(colors)
     gplot(x, y, z, "solid", "levels")
O-Matrix will generate a plot that changes color at z = -.5, z = 0, and z = .5. (Note that 4 colors are plotted, but there are only 3 color changes.)