Skip to content

camlookat

plot · scripts/plot/appearance/camlookat.m

: camlookat ()
: camlookat (ax)
: camlookat (h)

Point the camera at graphics objects.

The camera target becomes the centre of the bounding box of the data of h (all children when an axes is given, the current axes by default) and the camera is placed along the present viewing direction at a distance at which the bounding sphere fits the view angle. Target and position modes become "manual"; view angle and up vector are kept.