Skip to content

cameratoolbar

plot · scripts/plot/util/cameratoolbar.m

: cameratoolbar
: cameratoolbar (action)
: cameratoolbar (hfig, action)
: cameratoolbar (hfig, "SetMode", mode)
: cameratoolbar (hfig, "SetCoordSys", coordsys)
: r = cameratoolbar (hfig, "Get…")

Show, hide and drive the camera toolbar of a figure.

action is one of "Show", "Hide", "Toggle", "Close", "SetMode", "GetMode", "SetCoordSys", "GetCoordSys", "GetVisible", "ResetCamera", "ResetSceneLight", "ResetCameraAndSceneLight", "ResetTarget", "ToggleSceneLight" and "NoReset".

Modes are "orbit", "orbitscenelight", "pan", "dollyhv", "dollyfb", "zoom", "roll", "walk" and "nomode". Coordinate systems are "x", "y", "z" and "none"; selecting one other than "none" sets the up vector of the current axes to that axis.

With an output argument, Show / Hide / Toggle / SetMode / SetCoordSys and the reset actions return the camera uitoolbar handle (MATLAB R2026a returns a Toolbar object). Getters return their value instead.