yt.visualization.volume_rendering.camera.FisheyeCamera.zoomin

FisheyeCamera.zoomin(final, n_steps, clip_ratio=None)

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.

clip_ratio : float, optional

If supplied, the ‘max_val’ argument to write_bitmap will be handed clip_ratio * image.std()

Examples

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