Pulsar::SimplePlot Class Referenceabstract

Plots a single plot. More...

#include <SimplePlot.h>

Inheritance diagram for Pulsar::SimplePlot:
Pulsar::FramedPlot Pulsar::Plot Reference::Able Reference::HeapTracked Pulsar::CalPhVFreqPlot Pulsar::DigitiserCountsPlot Pulsar::DynamicSpectrumPlot Pulsar::FluctPlot Pulsar::FrequencyPlot Pulsar::PhasePlot Pulsar::TwoBitPlot Pulsar::DynamicBaselineSpectrumPlot Pulsar::DynamicCalSpectrumPlot Pulsar::DynamicSNSpectrumPlot Pulsar::DynamicStatSpectrumPlot Pulsar::DynamicWeightSpectrumPlot Pulsar::StokesFluctPhase Pulsar::StokesFluctPlot Pulsar::CalibratorParameter Pulsar::CalibratorSpectrum Pulsar::ChannelWeightsPlot Pulsar::PowerSpectra Pulsar::AnglePlot Pulsar::FluxPlot Pulsar::LinePhasePlot Pulsar::PhaseVsPlot

Public Member Functions

virtual void plot (const Archive *)
 Plot in the current viewport.
 
virtual std::string get_xlabel (const Archive *)
 Get the default label for the x axis.
 
virtual std::string get_ylabel (const Archive *)
 Get the default label for the y axis.
 
virtual void draw (const Archive *)=0
 Derived classes must draw in the current viewport.
 
void add_annotation (PlotAnnotation *a)
 Add an annotation.
 
- Public Member Functions inherited from Pulsar::FramedPlot
 FramedPlot ()
 Default constructor.
 
virtual TextInterface::Parserget_frame_interface ()
 Get the text interface to the frame attributes.
 
PlotAttributesget_attributes ()
 Get the plot attributes.
 
virtual PlotFrameget_frame ()
 Get the frame.
 
virtual const PlotFrameget_frame () const
 Get the frame.
 
virtual void set_frame (PlotFrame *)
 Set the frame.
 
virtual void prepare (const Archive *)
 Derived classes must prepare to draw.
 
- Public Member Functions inherited from Pulsar::Plot
 Plot ()
 Default constructor.
 
virtual void preprocess (Archive *)
 Process the Archive as needed before calling plot.
 
virtual void finalize ()
 Some plots may postpone plotting.
 
virtual TextInterface::Parserget_interface ()=0
 Get the text interface to the configuration attributes.
 
virtual void configure (const std::string &)
 Process a configuration command.
 
void set_constructor (Constructor *c)
 Set the constructor.
 
Constructorget_constructor ()
 Get the constructor.
 
virtual void set_preprocessor (Processor *)
 Set the pre-processor.
 
virtual Processorget_preprocessor ()
 Get the pre-processor.
 
virtual bool has_preprocessor () const
 Return true if pre-processor has been set.
 
- 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
 

Protected Attributes

std::vector< Reference::To< PlotAnnotation > > annotations
 Annotations to add to the plot.
 
- Protected Attributes inherited from Pulsar::FramedPlot
Reference::To< PlotFrameframe
 The plot frame.
 

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 ()
 
- Static Public Attributes inherited from Pulsar::Plot
static bool verbose = false
 Verbosity flag.
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Detailed Description

Plots a single plot.

Children of SimplePlot always:

  • plot in the currently open viewport
  • use the currently set line width
  • use the currently set character height

That is, children of the SimplePlot class do not call cpgsvp, cpgslw, or cpgsch. Children of SimplePlot class may:

  • change the colour used within the plot frame
  • change the line style within the plot frame

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

Generated using doxygen 1.8.17