particlediagplot.hpp
Go to the documentation of this file.
66 };
Class for colormap type plots on a regular rectangular mesh.
Definition: meshcolormap.hpp:90
void set_interpolation(interpolation_e interpolation)
Set interpolation mode.
Definition: meshcolormap.cpp:158
bool get_histogram_style(void)
Get 1d histogram style.
Definition: particlediagplot.hpp:269
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
particle_diag_plot_type_e get_type(void)
Get plot type.
Definition: particlediagplot.hpp:199
void set_histogram_m(size_t m)
Set number of histogram bins in y-direction to use for colormap plot.
Definition: particlediagplot.hpp:237
interpolation_e get_colormap_interpolation(void)
Get the type of interpolation used in colormap plot.
Definition: particlediagplot.hpp:283
bool get_emittance_ellipse(void)
Is emittance fit enabled for emittance plots?
Definition: particlediagplot.hpp:171
void set_emittance_ellipse(bool enable)
Enable/disable emittance fit for emittance plots?
Definition: particlediagplot.hpp:165
void export_data(const std::string &filename)
Export plotted data as ASCII.
Definition: particlediagplot.cpp:315
void set_histogram_n(size_t n)
Set number of histogram bins in x-direction to use for colormap plot.
Definition: particlediagplot.hpp:224
double get_isum(void)
Return total current in diagnostic.
Definition: particlediagplot.hpp:319
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
void set_type(particle_diag_plot_type_e type)
Set plot type.
Definition: particlediagplot.hpp:192
double get_dot_size(void)
Get dot size for scatter plot.
Definition: particlediagplot.hpp:303
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_colormap_interpolation(interpolation_e interpolation)
Set the type of interpolation used in colormap plot.
Definition: particlediagplot.hpp:275
void set_dot_size(double size)
Set dot size for scatter plot.
Definition: particlediagplot.hpp:295
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:51
histogram_accumulation_e get_histogram_accumulation(void)
Get histogram accumulation type.
Definition: particlediagplot.hpp:257
void set_histogram_style(bool style)
Set 1d histogram style.
Definition: particlediagplot.hpp:263
void set_view(coordinate_axis_e axis, double level)
Set diagnostic plane.
Definition: particlediagplot.hpp:177
~ParticleDiagPlot()
Destructor.
Definition: particlediagplot.cpp:81
size_t get_histogram_n(void)
Get number of histogram bins in x-direction to use for colormap plot.
Definition: particlediagplot.hpp:231
const MeshColormap * get_colormap(void) const
Get a pointer to histogram in the plot.
Definition: particlediagplot.hpp:289
const Histogram * get_histogram(void)
Return a pointer to histogram.
Definition: particlediagplot.hpp:311
void set_histogram_accumulation(histogram_accumulation_e accumulation)
Set histogram accumulation type.
Definition: particlediagplot.hpp:250
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:304
Class for trajectory diagnostic data.
Definition: trajectorydiagnostics.hpp:129
void set_point_style(point_style_e pointstyle, bool filled=true, double scale=1.0)
Set point style.
Definition: xygraph.cpp:253
Frame for plots
Geometry definition
Histogram data handling for 1D and 2D
histogram_accumulation_e
Histogram accumulation type.
Definition: histogram.hpp:53
Mesh based colormap graph for plotting.
Particle databases
particle_diag_plot_type_e
Particle diagnostic plot type.
Definition: particlediagplot.hpp:61
@ PARTICLE_DIAG_PLOT_SCATTER
Scatter plot.
Definition: particlediagplot.hpp:63
@ PARTICLE_DIAG_PLOT_HISTO1D
1D histogram.
Definition: particlediagplot.hpp:65
@ PARTICLE_DIAG_PLOT_NONE
Dummy diagnostic type. Does nothing.
Definition: particlediagplot.hpp:62
@ PARTICLE_DIAG_PLOT_HISTO2D
2D histogram.
Definition: particlediagplot.hpp:64
Trajectory diagnostics.
Base types.
trajectory_diagnostic_e
Type of diagnostic for trajectories.
Definition: types.hpp:196
XY-graph.