-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds six new plots with multiple bunches: * Beam size (rms) * Emittance * Emittance growth * Energy * Combined energy (log-scale) * Combined phase space Can include all bunches or only a selected number of bunches. Beam size, emittance and emittance growth are plotted against time t or location z. Each bunch is plotted as a dotted line, and a combined value for all bunches as a solid line. Also plots experimental data for beam size alongside the simulation results. Energy spectra are plotted as histograms, including a combined plot for all bunches combined. Phase space plots are generated using Matplotlib's `hist2d` function, which is much faster than the custom method use for the single-file phase space plots. Also added 1D histograms to the axes. MultiBunchPlot.py can also be run as a script, outputting all files as PNG images, and can be run on a headless server. The bunches to plot can be given as a command-line parameter.
- Loading branch information
Showing
2 changed files
with
904 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.