gefera.animate

Module Contents

gefera.animate.draw(sys, ax, t, r1, r2, ld_params=None, cmap=plt.cm.copper, fill=True)

Draw the state of the system.

Parameters
  • sys (System) – The system

  • ax (matplotlib.pyplot.axis) – Axis on which to draw

  • t (float) – Time at which to draw snapshot of system

  • r1 (float) – Radius of the first body

  • r2 (float) – Radius of the second body

  • ld_params (optional, float) – Limb-darkening parameters for the star

  • cmap (optional, matplotlib.colors.Colormap) – Colormap for coloring the star according to ld_params

  • fill (optional, bool) – If true, fill transiting bodies, if false draw outlines only

gefera.animate.snapshots(sys, axs, t, r1, r2, ld_params=None, cmap=plt.cm.copper, fill=True)

Draw a series of snapshots representing the system and multiple times.

Parameters
  • sys (System) – The system

  • axs (list) – A list of axes of length len(t) on which to plot the snapshots

  • t (array) – Time at which to draw snapshot of system

  • r1 (float) – Radius of the first body

  • r2 (float) – Radius of the second body

  • ld_params (optional, float) – Limb-darkening parameters for the star

  • cmap (optional, matplotlib.colors.Colormap) – Colormap for coloring the star according to ld_params

  • fill (optional, bool) – If true, fill transiting bodies, if false draw outlines only

gefera.animate.animate(sys, fig, t, r1, r2, duration=5, ld_params=None, cmap=plt.cm.copper)

Make an animation of the system.

Parameters
  • sys (System) – The system

  • fig (matplotlib.pyplot.figure) – Figure object

  • t (array) – Array of times representing each frame of the animation

  • r1 (float) – Radius of the first body

  • r2 (float) – Radius of the second body

  • ld_params (optional, float) – Limb-darkening parameters for the star

  • cmap (optional, matplotlib.colors.Colormap) – Colormap for coloring the star according to ld_params

Returns

The animation.

Return type

matplotlib.animation.FuncAnimation