|
| LinePhasePlot () |
| Constructor Assume the subint, or range of subints are unset until we know how many there are Assume channel and polarization are zero, leave it up to the user to scrunch the data in frequency and polarization.
|
void | prepare (const Archive *data) |
| prepare the archive for rendering
|
void | draw (const Archive *data) |
| draw the archive
|
TextInterface::Parser * | get_interface () |
| Get a LinePhasePlot::Interface for this object.
|
int | get_isub (void) const |
| Get the first index of the subint range.
|
void | set_isub (int s_isub) |
| Set the subint range to (x,x)
|
pair< int, int > | get_srange () const |
| Get the range of subints to plot.
|
void | set_srange (const pair< int, int > &s_srange) |
| Set the range of subints to plot.
|
int | get_ipol (void) const |
| Get the polarization to plot.
|
void | set_ipol (int s_ipol) |
| Set the polarization to plot.
|
int | get_ichan () const |
| Get the frequency channel to plot.
|
void | set_ichan (const int &s_ichan) |
| Set the frequency channel to plot.
|
int | get_line_colour () const |
| Get the line colour.
|
void | set_line_colour (const int &s_line_colour) |
| Set the line colour.
|
| PhasePlot () |
| Default constructor.
|
TextInterface::Parser * | get_interface () |
| Get the text interface to the configuration attributes.
|
std::string | get_xlabel (const Archive *) |
| Get the default label for the x axis.
|
std::string | get_ylabel (const Archive *) |
| Get the default label for the y axis.
|
void | set_yrange (float min, float max) |
| Set the y-range.
|
PhaseScale * | get_scale () |
| Get the scale.
|
virtual void | plot (const Archive *) |
| Plot in the current viewport.
|
void | add_annotation (PlotAnnotation *a) |
| Add an annotation.
|
| FramedPlot () |
| Default constructor.
|
virtual TextInterface::Parser * | get_frame_interface () |
| Get the text interface to the frame attributes.
|
PlotAttributes * | get_attributes () |
| Get the plot attributes.
|
virtual PlotFrame * | get_frame () |
| Get the frame.
|
virtual const PlotFrame * | get_frame () const |
| Get the frame.
|
virtual void | set_frame (PlotFrame *) |
| Set the frame.
|
| Plot () |
| Default constructor.
|
virtual void | preprocess (Archive *) |
| Process the Archive as needed before calling plot.
|
virtual void | finalize () |
| Some plots may postpone plotting.
|
virtual void | configure (const std::string &) |
| Process a configuration command.
|
void | set_constructor (Constructor *c) |
| Set the constructor.
|
Constructor * | get_constructor () |
| Get the constructor.
|
virtual void | set_preprocessor (Processor *) |
| Set the pre-processor.
|
virtual Processor * | get_preprocessor () |
| Get the pre-processor.
|
virtual bool | has_preprocessor () const |
| Return true if pre-processor has been set.
|
| Able (const Able &) |
Able & | operator= (const Able &) |
unsigned | get_reference_count () const |
| HeapTracked (const HeapTracked &) |
HeapTracked & | operator= (const HeapTracked &) |
bool | __is_on_heap () const |
Draw a set of profiles for subints stacked ontop of eachother.
void LinePhasePlot::prepare |
( |
const Archive * | data | ) |
|
|
virtual |
prepare the archive for rendering
Figures out some measurements before plotting We want to setup the y scale with world coordinates to fit all the subints on the plot.
We also want to setup the external world coordinates that the y axis will be labelled with. Being a PhasePlot, x axis takes care of itself.
- Parameters
-
data | The archive to prepare, hopefully the one that will be draw(n) |
Reimplemented from Pulsar::FramedPlot.
References Pulsar::FramedPlot::get_frame(), Pulsar::IntegrationManager::get_Integration(), Pulsar::IntegrationManager::get_nsubint(), Pulsar::Integration::get_Profile(), Pulsar::PlotFrame::get_y_axis(), Pulsar::PlotFrame::get_y_scale(), Pulsar::PlotAxis::set_alternate(), Pulsar::PlotScale::set_buf_norm(), Pulsar::PlotAxis::set_label(), Pulsar::PlotScale::set_minmax(), Pulsar::PlotAxis::set_tick(), and Pulsar::PlotScale::set_world_external().