particlediagplot.hpp
Go to the documentation of this file.
trajectory_diagnostic_e
Type of diagnostic for trajectories.
Definition: types.hpp:196
double get_isum(void)
Return total current in diagnostic.
Definition: particlediagplot.hpp:319
void get_view(coordinate_axis_e &axis, double &level)
Get diagnostic plane definition if it an even coorinate plane.
Definition: particlediagplot.hpp:185
const Emittance & calculate_emittance(void)
Calculate Emittance fit.
Definition: particlediagplot.cpp:303
Geometry definition
void export_data(const std::string &filename)
Export plotted data as ASCII.
Definition: particlediagplot.cpp:314
Trajectory diagnostics.
Histogram data handling for 1D and 2D
void set_type(particle_diag_plot_type_e type)
Set plot type.
Definition: particlediagplot.hpp:192
const MeshColormap * get_colormap(void) const
Get a pointer to histogram in the plot.
Definition: particlediagplot.hpp:289
size_t get_histogram_m(void)
Get number of histogram bins in y-direction to use for colormap plot.
Definition: particlediagplot.hpp:244
void set_histogram_accumulation(histogram_accumulation_e accumulation)
Set histogram accumulation type.
Definition: particlediagplot.hpp:250
Frame for plots
particle_diag_plot_type_e
Particle diagnostic plot type.
Definition: particlediagplot.hpp:61
~ParticleDiagPlot()
Destructor.
Definition: particlediagplot.cpp:80
void set_point_style(point_style_e pointstyle, bool filled=true, double scale=1.0)
Set point style.
Definition: xygraph.cpp:253
void set_colormap_interpolation(interpolation_e interpolation)
Set the type of interpolation used in colormap plot.
Definition: particlediagplot.hpp:275
Particle databases
Base types.
void set_interpolation(interpolation_e interpolation)
Set interpolation mode.
Definition: meshcolormap.cpp:158
void set_histogram_n(size_t n)
Set number of histogram bins in x-direction to use for colormap plot.
Definition: particlediagplot.hpp:224
Mesh based colormap graph for plotting.
particle_diag_plot_type_e get_type(void)
Get plot type.
Definition: particlediagplot.hpp:199
size_t get_histogram_n(void)
Get number of histogram bins in x-direction to use for colormap plot.
Definition: particlediagplot.hpp:231
double get_dot_size(void)
Get dot size for scatter plot.
Definition: particlediagplot.hpp:303
bool get_histogram_style(void)
Get 1d histogram style.
Definition: particlediagplot.hpp:269
Class for trajectory diagnostic data.
Definition: trajectorydiagnostics.hpp:127
const Histogram * get_histogram(void)
Return a pointer to histogram.
Definition: particlediagplot.hpp:311
void set_emittance_ellipse(bool enable)
Enable/disable emittance fit for emittance plots?
Definition: particlediagplot.hpp:165
XY-graph.
bool get_emittance_ellipse(void)
Is emittance fit enabled for emittance plots?
Definition: particlediagplot.hpp:171
interpolation_e get_colormap_interpolation(void)
Get the type of interpolation used in colormap plot.
Definition: particlediagplot.hpp:283
Class for colormap type plots on a regular rectangular mesh.
Definition: meshcolormap.hpp:90
histogram_accumulation_e get_histogram_accumulation(void)
Get histogram accumulation type.
Definition: particlediagplot.hpp:257
histogram_accumulation_e
Histogram accumulation type.
Definition: histogram.hpp:53
void set_view(coordinate_axis_e axis, double level)
Set diagnostic plane.
Definition: particlediagplot.hpp:177
void set_histogram_style(bool style)
Set 1d histogram style.
Definition: particlediagplot.hpp:263
void set_histogram_m(size_t m)
Set number of histogram bins in y-direction to use for colormap plot.
Definition: particlediagplot.hpp:237
ParticleDiagPlot(Frame &frame, const Geometry &geom, const ParticleDataBase &pdb, coordinate_axis_e axis, double level, particle_diag_plot_type_e type, trajectory_diagnostic_e diagx, trajectory_diagnostic_e diagy=DIAG_NONE)
Constructor for particle diagnostic plot.
Definition: particlediagplot.cpp:50
void set_dot_size(double size)
Set dot size for scatter plot.
Definition: particlediagplot.hpp:295
void get_plot(particle_diag_plot_type_e &type, trajectory_diagnostic_e &diagx, trajectory_diagnostic_e &diagy)
Get plot type and diagnostic axes of plot.
Definition: particlediagplot.hpp:215
void set_plot(particle_diag_plot_type_e type, trajectory_diagnostic_e diagx, trajectory_diagnostic_e diagy)
Set plot type and diagnostic axes of plot.
Definition: particlediagplot.hpp:205