Skip to content

view

plot · scripts/plot/appearance/view.m

: view (az, el)
: view ([az el])
: view ([x y z])
: view (2)
: view (3)
: [az, el] = view ()
: T = view ()
: view (ax, …)

Query or set the viewpoint of an axes.

The viewpoint is the azimuth az and elevation el in degrees. view (2) selects the default 2-D view [0 90] and view (3) the default 3-D view [-37.5 30]. A single 3-element vector is read as the Cartesian position of the viewer. With two output arguments the present angles are returned; with a single output the 4-by-4 viewing transformation matrix is returned.