Animation of Kuramoto Order Parameter

Functions:

Animation(fp_in, name)

Makes a gift with the images inside the fp_in list.

animateClusters(T, dt, Step, act_mat, ...)

Makes a gift with the activity of the nodes specified by wich_nodes plotted in the unitary circle.

animateSync(T, dt, Step, act_mat[, which_nodes])

Makes a gift with the activity of the nodes specified by wich_nodes plotted in the unitary circle.

remove_img(fp_in)

Remove all .png files inside the fp_in list

plot.animation.Animation(fp_in, name)

Makes a gift with the images inside the fp_in list.

Parameters
  • fp_in (list of filenames) – List with the frame images.

  • name (str) – Output name of the GIF file. The extension is not required, the internal code assigns the .gif extension.

Returns

But it saves the GIF file as ‘ name .gif ‘ in the hard disk.

Return type

None.

plot.animation.animateClusters(T, dt, Step, act_mat, CoherentPhases, FC_threshold)

Makes a gift with the activity of the nodes specified by wich_nodes plotted in the unitary circle. But only if the FC gives that the phases between the nodes are coherent (>=FC_threshold).

Parameters
  • T (float) – Total simulation time.

  • dt (float) – Integration time step.

  • Step (float) – The frame duration in the gif

  • act_mat (float 2D array) – The activity matrix or the phases after integration. Size N x T.

  • CoherentPhases (float 2D array) – The FC matrix of act_mat. Size N x N.

Returns

But it saves ‘CoherentNodes.gif’ in the hard disk.

Return type

None.

plot.animation.animateSync(T, dt, Step, act_mat, which_nodes=[0])

Makes a gift with the activity of the nodes specified by wich_nodes plotted in the unitary circle.

Parameters
  • T (float) – Total simulation time.

  • dt (float) – Integration time step.

  • Step (float) – The frame duration in the gif

  • act_mat (TYPE) – The activity matrix or the phases after integration. Size N x T.

Returns

But it saves ‘CircularSynchronization.gif’ in the hard disk.

Return type

None.

plot.animation.remove_img(fp_in)

Remove all .png files inside the fp_in list

Use with caution.

Parameters

fp_in (list of filenames) – List with the frame images.

Return type

None.