|
Contents | Previous | Next | Subchapters |
| Syntax |
gaddview(right, up, width, height) |
| See Also | gview , glistview , ginitview , gborder |
| Menu Command | Graphics | Add Viewport . . . |
y = x in the upper-right
quadrant of the window, enter
ginit
x = 0. : .1 : 1.
upright = gaddview(.5, .5, .5, .5);
gplot(x, x)
You could continue the example above to include a plot of the parabola
y = x^2 in the lower-left quadrant of the display by entering
lowleft = gaddview(0., 0., .5, .5)
gplot(x, x^2)
The resulting plot would look like this:
To add another viewport to the upper-left quadrant of the window,
you could enter
upleft = gaddview(0., .5, .5, .5)
If you then enter
print upright, lowleft, upleft
O-Matrix will reply
1 2 3
which are the corresponding viewport identifiers.