Contents Previous Next Subchapters

Setting Various Viewport Options
Syntax setview(optionflag)
See Also gaddview

Description
Sets various display options for the current viewport . The character row vector option specifies the option to be set and the logical scalar flag specifies if the option is to be turned on or off. (A true value turns the option on.) The valid values for option are:
option description
"box" draws a box with tick marks around the
plotting region in the x-y plane
"border" draws a border around the viewport
"xaxis" draws the x-axis
"yaxis" draws the y-axis
"zaxis" draws the z-axis
All of the options except "box" can also be set in other graphics functions.

Example
If you enter
     gplot(seq(5))
O-Matrix will plot the line y = x from 1 to 5. If you continue by entering
     setview("box", true)
O-Matrix will include a box with tick marks around the plot. If you continue by entering
     setview("xaxis", false)
O-Matrix will erase the x-axis and the part of the box that was in the x-axis direction.