Skip to content

camzoom

plot · scripts/plot/appearance/camzoom.m

: camzoom (factor)
: camzoom (ax, factor)

Zoom the camera of an axes by factor.

factor must be a positive finite real scalar. The camera view angle v becomes 2 atan (tan (v/2) / factor), so factors larger than one zoom in and factors below one zoom out. The view angle mode becomes "manual"; position, target and up vector are kept.