add_animations#

ImguiFigure.add_animations(*funcs, pre_render=True, post_render=False)#

Add function(s) that are called on every render cycle. These are called at the Figure level.

Parameters:
  • *funcs (callable(s)) – function(s) that are called on each render cycle

  • pre_render (bool, default True, optional keyword-only argument) – if true, these function(s) are called before a render cycle

  • post_render (bool, default False, optional keyword-only argument) – if true, these function(s) are called after a render cycle

Examples#

Volume movie

Volume movie

Polygon animation

Polygon animation

Simple Image Update

Simple Image Update

Simple 3D Line Animation

Simple 3D Line Animation

Multi-Subplot Image Update

Multi-Subplot Image Update

Spinning spiral scatter

Spinning spiral scatter

Rotate image

Rotate image

Rotate line

Rotate line

Scale image

Scale image

Scale line

Scale line

Translate image

Translate image

Translate line

Translate line

Translate and scale image

Translate and scale image

Translate and scale line

Translate and scale line

Translate scale and rotate image

Translate scale and rotate image

Translate scale and rotate line

Translate scale and rotate line

Moving TextGraphic label

Moving TextGraphic label