Contents | Previous | Next | Subchapters |

Syntax |
`glevel` levels`)` |

See Also | gplot , and mesh or surface |

If

*z*

at which curves plotted with the "levels" version of
gplot
,
mesh or surface
change color,
where *z*

is less than or equal to
the first element of *z*

is between
the first and second elements, and so on.
If there are more levels than there are colors in the
current color sequence, the sequence will "wrap around"
to the first color after using the last color in the sequence.

If 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.)