Description
Adds a new graphics window with the specified
caption
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.
This syntax uses the
default settings
for the arguments
geometry
,
call back
, and
style
.

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