perturbopy.postproc.utils.spectra_plots.update_scatter
- perturbopy.postproc.utils.spectra_plots.update_scatter(anim_time, ax, time_step, idx_elec, idx_hole, elec_scat_list, hole_scat_list, elec_delta_occs_array, hole_delta_occs_array)
Animate the pump pulse excitation for electrons and holes.
- Parameters:
anim_time (float) – Animation time.
ax (matplotlib.axes.Axes) – Axis for plotting the pump pulse excitation.
time_step (float) – Time step for the simulation. Only used for the title.
idx_elec (numpy.ndarray) – Index for the electron k-points to plot.
idx_hole (numpy.ndarray) – Index for the hole k-points to plot.
elec_scat_list (list) – List of scatter objects for the electron occupations.
hole_scat_list (list) – List of scatter objects for the hole occupations.
elec_delta_occs_array (numpy.ndarray) – Array of electron occupation changes. Sizes of the scatter objects are set based on this array.
hole_delta_occs_array (numpy.ndarray) – Array of hole occupation changes, similar to elec_delta_occs_array.