yt.visualization.volume_rendering.camera.PerspectiveCamera.move_to

PerspectiveCamera.move_to(final, n_steps, final_width=None, exponential=False, clip_ratio=None)

Loop over a look_at

This will yield n_steps snapshots until the current view has been moved to a final center of final with a final width of final_width.

Parameters:

final : array_like

The final center to move to after n_steps

n_steps : int

The number of look_at snapshots to make.

final_width: float or array_like, optional :

Specifies the final width after n_steps. Useful for moving and zooming at the same time.

exponential : boolean

Specifies whether the move/zoom transition follows an exponential path toward the destination or linear

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.move_to([0.2,0.3,0.6], 10)):
...     iw.write_bitmap(snapshot, "move_%04i.png" % i)