Contents Previous Next Subchapters

Listing Viewport Identifiers For Current Graphic Window
Syntax glistview
See Also gaddview , gview , gdelview

Description
Returns an integer column vector containing the viewport identifiers for each of the viewports in the current graphic window. Viewports are numbered in the order that they are defined and the initial viewport, number 0, is the entire plotting window.

Example
If you enter
     ginit
     id1 = gaddview(0., 0., 1., .5)
     id2 = gaddview(0., .5, 1., .5)
     print id1, id2
O-Matrix will respond
     1 2
If you then enter
     list = sort(glistview)
     for i = 1 to rowdim(list) begin
          id = list(i)
          print id, gview(id)
     end
O-Matrix will respond
     0 [ 0 , 0 , 1 , 1 ]
     1 [ 0 , 0 , 1 , 0.5 ]
     2 [ 0 , 0.5 , 1 , 0.5 ]
which is the identifier for each of the viewports followed by the arguments that were used to define the viewport.