zkit.viz.photoelectron

Plots of photoelectron spectra, momentum maps and harmonic spectra.

Every function takes labelled curves {label: y} so that runs of TDSE-Z and other codes (SCID-TDSE, …) can be overlaid; the first label is drawn solid and the next ones dashed unless a style is given.

zkit.viz.photoelectron.plot_angular(theta, panels, styles=None, title='Angular distributions (polarisation vertical)')

Polar plots of dP/d^3k(theta), mirrored to [0, 2 pi).

panels is a list of (title, {label: values}). Returns the figure.

Parameters:
  • theta (ndarray)

  • panels (Sequence[tuple])

  • styles (dict | None)

  • title (str)

zkit.viz.photoelectron.plot_harmonics(order, spectra, max_order=6.0, decades=10.0, styles=None, title='Harmonic spectrum')

|omega^2 d(omega)|^2 of several runs against harmonic order.

Parameters:
  • order (ndarray)

  • spectra (dict)

  • max_order (float)

  • decades (float)

  • styles (dict | None)

  • title (str)

zkit.viz.photoelectron.plot_momentum_map(spec, other=None, labels=('TDSE-Z', 'SCID-TDSE'), kmax=None, decades=5.0)

log10 |b(k)|^2 in the (k_x, k_z) plane, mirrored about k_x = 0 when the grid holds k_x >= 0 only; with other, a SCID-TDSE map (phi = 0, pi) beside it.

Parameters:
  • spec (SurffSpectrum)

  • other (ScidSpectrum | None)

  • labels (Sequence[str])

  • kmax (float | None)

  • decades (float)

zkit.viz.photoelectron.plot_pes(energy, spectra, reference=None, peaks=(), decades=6.0, styles=None, title='Photoelectron spectrum')

dP/dE of several runs on a log scale, with the ratio to reference below.

Returns the matplotlib figure.

Parameters:
  • energy (ndarray)

  • spectra (dict)

  • reference (str | None)

  • peaks (Sequence[float])

  • decades (float)

  • styles (dict | None)

  • title (str)

zkit.viz.photoelectron.plot_time_series(time, panels, styles=None, title='')

Stacked time series; panels is a list of (ylabel, {label: y}).

Parameters:
  • time (ndarray)

  • panels (Sequence[tuple])

  • styles (dict | None)

  • title (str)