43 #ifndef PARTICLEDIAGPLOT_HPP
44 #define PARTICLEDIAGPLOT_HPP 1
108 bool _ellipse_enable;
111 std::vector<double> _zdata;
120 void build_data(
void );
121 void merge_bbox(
double bbox[4],
const double bb[4] );
159 _ellipse_enable = enable;
165 return( _ellipse_enable );
225 return( _histogram_n );
238 return( _histogram_m );
244 _interpolation = interpolation;
252 return( _interpolation );
trajectory_diagnostic_e
Type of diagnostic for trajectories.
Definition: types.hpp:165
void get_view(coordinate_axis_e &axis, double &level)
Get diagnostic plane definition if it an even coorinate plane.
Definition: particlediagplot.hpp:178
Definition: xygraph.hpp:62
Definition: particlediagplot.hpp:60
void export_data(const std::string &filename)
Export plotted data as ASCII.
const Colormap * get_colormap(void) const
Get a pointer to histogram in the plot.
Definition: particlediagplot.hpp:257
Histogram data handling for 1D and 2D
void set_type(particle_diag_plot_type_e type)
Set plot type.
Definition: particlediagplot.hpp:185
void build_plot(void)
Rebuild plot.
size_t get_histogram_m(void)
Get number of histogram bins in y-direction to use for colormap plot.
Definition: particlediagplot.hpp:237
particle_diag_plot_type_e
Definition: particlediagplot.hpp:59
~ParticleDiagPlot()
Destructor.
void set_point_style(point_style_e pointstyle, bool filled=true, double scale=1.0)
Set point style.
void set_colormap_interpolation(interpolation_e interpolation)
Set the type of interpolation used in colormap plot.
Definition: particlediagplot.hpp:243
void set_histogram_n(size_t n)
Set number of histogram bins in x-direction to use for colormap plot.
Definition: particlediagplot.hpp:217
Geometry defining class.
Definition: geometry.hpp:131
particle_diag_plot_type_e get_type(void)
Get plot type.
Definition: particlediagplot.hpp:192
Particle diagnostic plot.
Definition: particlediagplot.hpp:78
Class for emittance statistics.
Definition: trajectorydiagnostics.hpp:236
interpolation_e
Definition: colormap.hpp:56
size_t get_histogram_n(void)
Get number of histogram bins in x-direction to use for colormap plot.
Definition: particlediagplot.hpp:224
double get_dot_size(void)
Get dot size for scatter plot.
Definition: particlediagplot.hpp:271
Class for trajectory diagnostic data.
Definition: trajectorydiagnostics.hpp:126
Class for colormap type plots.
Definition: colormap.hpp:74
const Histogram * get_histogram(void)
Return a pointer to histogram.
Definition: particlediagplot.hpp:279
void set_emittance_ellipse(bool enable)
Enable/disable emittance fit for emittance plots?
Definition: particlediagplot.hpp:158
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.hpp:63
Definition: particlediagplot.hpp:61
bool get_emittance_ellipse(void)
Is emittance fit enabled for emittance plots?
Definition: particlediagplot.hpp:164
interpolation_e get_colormap_interpolation(void)
Get the type of interpolation used in colormap plot.
Definition: particlediagplot.hpp:251
const Emittance & calculate_emittance(void)
Calculate Emittance fit.
Base histogram class.
Definition: histogram.hpp:61
coordinate_axis_e
Coordinate axis identifier.
Definition: types.hpp:139
void set_view(coordinate_axis_e axis, double level)
Set diagnostic plane.
Definition: particlediagplot.hpp:170
Colormap graph for plotting
void set_histogram_m(size_t m)
Set number of histogram bins in y-direction to use for colormap plot.
Definition: particlediagplot.hpp:230
Definition: particlediagplot.hpp:62
Class for XY-type simple graph plots.
Definition: xygraph.hpp:71
General purpose plotter frame for cairographics surfaces.
Definition: frame.hpp:107
void set_dot_size(double size)
Set dot size for scatter plot.
Definition: particlediagplot.hpp:263
void set_interpolation(interpolation_e interpolation)
Set interpolation mode.
Three dimensional vector.
Definition: vec3d.hpp:58
Dummy diagnostic. Does nothing.
Definition: types.hpp:166
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:208
Particle database base class.
Definition: particledatabase.hpp:167
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:198