plot view command

Syntax

plot <s > view keyword ...

Primary keywords:

center    clip-back    clip-front    dip    dip-direction    distance    eye    isometric    magnification    projection    reset    roll    rotation

controls the camera view of the plot. If a plot name s is not specified, the current view is assumed.

The available keywords are:

center v

the center of the view. The camera always points from the eye position to the view center. In model mode (the default) the eye rotates around the view center when the view is rotated.

clip-back f

the limiting distance to the back clipping plane. This is by default set to 1e10 so to be not a constraint. If the default view depth setting is causing objects that are very far away to reduce the resolution of the depth buffer, you can adjust this parameter bring it forward.

clip-front f

the limiting distance to the back clipping plane. This is by default set to -1e10 so to be not a constraint. If the default view depth setting is causing objects that are very close to reduce the resolution of the depth buffer, you can adjust this parameter bring it back.

dip f

sets the orientation of the view plane, in degrees. The current view center and distance is kept constant and the eye is rotated about the center until the vector from the eye to the view center is normal to the plane with this dip.

dip-direction f

sets the orientation of the view plane, in degrees. The current view center and distance is kept constant and the eye is rotated about the center until the vector from the eye to the view center is normal to the plane with this dip direction.

distance f

sets the distance from the eye to the view center. The direction of the current vector from the eye position to the view center is held constant, but the eye is moved so that the distance between them is this value.

eye v

sets the current eye position. The viewing direction is always from the eye position to the view center. The direction of “up” is determined by the current roll, which is held constant.

isometric

Reset to plot isometric view. If a view name s is not specified, the current view is assumed. This command is equivalent to the keystroke [I].

magnification f

sets the current view magnification. The default value is 1.0, which represents a field of view angle of 45 degrees. Increasing the magnification decreases the field of view angle.

projection keyword

sets if the view includes perspective distortion or if it is an orthographic (parallel) projection. The available keywords are:

parallel

Sets the view to be a orthographic or parallel projection. Objects do not get smaller as they get farther away. The distance parameter has no immediate effect on the view, except to change the result of interactive controls.

perspective

Sets the view to be a perspective view based on the current eye position with a field of view determined by the current magnification. This is the default value.

reset

Resets the view settings to default values, forcing a recalculation of an initial view. The current list of plot items is not changed. If a plot name s is not specified, the current view is assumed. This command is equivalent to the keystroke “shift” + [R].

roll f

Sets the current roll, in degrees. Roll defines which direction is towards the top of the screen.

The camera always faces from the eye position to the view center. Roll is defined by the angle from the vector pointing to the top of the screen to the global z direction projected onto the screen. The global x direction is used if the view is entirely along the z-axis, and therefore has no projection.

rotation <v >

The plot view is rotated by the vector <v>. If a plot view name s is not specified, the current plot is assumed.

The first component of <v> is the yaw rotation angle. The second component of <v> is the pitch rotation angle. The third component of <v> is the roll rotation angle.