AnimatedText#

class AnimatedText(ax: Axes, text: str, canvas, kw: dict | None = None, anim_start=0.9, anim_dt_ms=25, anim_delta=-0.0005, anim_stop=0, anim_accel=-0.0005, start=True, loc=[0.5, 0.5])[source]#

Class that animates text.

Parameters:
  • ax (plt.Axes) – The axis.

  • text (str) – Text to animate.

  • canvas (canvas) – The canvas.

  • kw (dict) – The parameters. Defaults to None.

  • anim_start (float) – Animation start. Defaults to 0.9.

  • anim_dt_ms (int) – Animation dt in miliseconds. Defaults to 25.

  • anim_delta (float) – Animation delta. Defaults to -0.0005.

  • anim_stop (int) – Animation stop. Defaults to 0.

  • anim_accel (float) – Animation acceleration. Defaults to -0.0005.

  • start (bool) – Whether or not to start. Defaults to True.

  • loc (list) – Location. Defaults to [0.5, 0.5].

Methods

start()[source]#

Start the timer.

stop()[source]#

Stop the timer.

timer_tick()[source]#

Tick the timer.