dsp::BitStatsPlotter Class Reference

Plots the histograms maintained by HistUnpacker classes. More...

#include <BitStatsPlotter.h>

Inheritance diagram for dsp::BitStatsPlotter:
Reference::Able Reference::HeapTracked dsp::ExcisionStatsPlotter

Public Member Functions

 BitStatsPlotter ()
 Null constructor.
 
virtual ~BitStatsPlotter ()
 Virtual destructor.
 
virtual void set_data (const HistUnpacker *stats)
 Set the data to be plotted.
 
void set_colours (const std::vector< int > &colours)
 Set the plot colour used for each digitizer.
 
void zap (unsigned ibin)
 Zap the specified histogram by setting its value to zero.
 
void plot (unsigned ichan, unsigned ipol)
 Plot the histogram for the specified frequency channel and polarization.
 
void label ()
 Label the plot.
 
virtual std::string get_xlabel () const
 The label on the x-axis.
 
virtual std::string get_ylabel () const
 The label on the y-axis.
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Public Attributes

bool full_xscale
 Plot the entire x-axis of the histogram.
 
float hist_min
 Fraction of histogram maximum below which points are ignored.
 

Backward Compatibility

These methods remain only to provide backward compatibility with older software.

bool horizontal
 Plot the two polarizations beside eachother.
 
bool colour
 Plot in colour.
 
std::vector< float > histogram
 Where individual histograms are kept for plotting.
 
std::vector< int > colours
 Colour used when plotting histogram from each digitizer.
 
std::vector< unsigned > to_zap
 Plot the two polarizations beside eachother.
 
float xscale
 Scale factor multplied by each index on x axis.
 
void set_viewport (float xmin, float xmax, float ymin, float ymax)
 Set the device-normalized coordinates of viewport frame.
 
void plot ()
 Plot two polarizations in the current viewport.
 
virtual bool special (unsigned imin, unsigned imax, float &ymax)
 Any special plotting implemented in derived classes. More...
 
virtual void check_colours ()
 Ensure that colours for different digitizers are unique.
 
void cpgpt (std::vector< float > &vals, int type)
 Plot a vector of points with index on x-axis.
 

Additional Inherited Members

- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Detailed Description

Plots the histograms maintained by HistUnpacker classes.

Member Function Documentation

◆ special()

virtual bool dsp::BitStatsPlotter::special ( unsigned  imin,
unsigned  imax,
float &  ymax 
)
inlineprotectedvirtual

Any special plotting implemented in derived classes.

Implementations should return true if cpgswin is called

Reimplemented in dsp::ExcisionStatsPlotter.


The documentation for this class was generated from the following files:

Generated using doxygen 1.8.17