jTWA.visualization#
jTWA.visualization comprises all plotting functionality.
Visualizations strongly depend on the physical scenario of interest and therefore no one-size-fits-all solution is possible.
The provided code is therefore to be understood as a first step to simplify building more specialized visualizations.
- jTWA.visualization.create_visuals(obs, cfg)#
create_visualsis a wrapper function to call other plotting functionality.- Args:
obs: The observables that are to be used for visualizations.cfg: The dictionary that contains the settings of the current run, including the working directory.
- jTWA.visualization.plot_spin_obs(obs, cfg)#
plot_spin_obsplots the total side- and zero-mode populations as well as the different momentum-mode populations.- Args:
obs: The observables that are to be used for visualizations.cfg: The dictionary that contains the settings of the current run, including the working directory.
- jTWA.visualization.plot_correlation_matrices(obs, cfg)#
plot_correlation_matricesplots correlation matrices of the two observables inobs["spin_obs"]at nine evenly distributed points in time. Currently this function assumes thatobs["spin_obs"]only contains the observables \(S_x\) and \(Q_{yz}\).- Args:
obs: The observables that are to be used for visualizations.cfg: The dictionary that contains the settings of the current run, including the working directory.
- jTWA.visualization.animate(obs, cfg, fps=15)#
animategenerates a video of the evolution of the Wigner distribution given by \(S_x\) and \(Q_{yz}\) over time.- Args:
obs: The observables that are to be used for visualizations.cfg: The dictionary that contains the settings of the current run, including the working directory.
- jTWA.visualization.plot_deviations(obs, cfg)#
plot_deviationsplots sanity checks, making sure that conservations of particle number and energy are fulfilled.- Args:
obs: The observables that are to be used for visualizations.cfg: The dictionary that contains the settings of the current run, including the working directory.