Contents Previous Next Subchapters

Creating A New Graphics Window
Syntax gaddwin
See Also delwin , gplot , and gaddwin(caption)
Menu Command Graphics | Add Window

Adds a new graphics window and selects it as the current window for plotting. The return value is an integer identifier for the new window. It can be used to reference the window in subsequent calls to the gwin function.

Default Settings
This syntax uses default settings for the arguments caption , geometry , call back , and style . The caption is set to "Graphic #" where "#" is replaced by the identifier for the new graphic window. The geometry is chosen by the windowing system. The call back command is set to delwin(caption). The style is set to "normal".

If you enter
     id = gaddwin
     gplot(seq(3), seq(3))
O-Matrix will create a window the caption "Graphic 1" and plot a line in the new window. If you then enter
     print id 
O-Matrix will respond
which is the identifier for the new graphic window.