yt.extensions.volume_rendering.PerspectiveCamera.zoomin

PerspectiveCamera.zoomin(final, n_steps)

Loop over a zoomin and return snapshots along the way.

This will yield n_steps snapshots until the current view has been zooming in to a final factor of final.

Parameters :

final : float

The zoom factor, with respect to current, desired at the end of the sequence.

n_steps : int

The number of zoom snapshots to make.

Examples

>>> for i, snapshot in enumerate(cam.zoomin(100.0, 10)):
...     iw.write_bitmap(snapshot, "zoom_%04i.png" % i)

Previous topic

yt.extensions.volume_rendering.PerspectiveCamera.zoom

Next topic

yt.extensions.volume_rendering.PlanckTransferFunction

This Page