11#ifndef __Pulsar_AnglePlot_h
12#define __Pulsar_AnglePlot_h
14#include "Pulsar/PhasePlot.h"
15#include "Pulsar/Index.h"
27 enum Marker { ErrorTick=0x01, ErrorBar=0x02, Dot=0x04 };
54 Index get_subint ()
const {
return isubint; }
58 Index get_chan ()
const {
return ichan; }
62 Marker get_marker ()
const {
return marker; }
66 float get_threshold ()
const {
return threshold; }
70 float get_span ()
const {
return span; }
74 const std::vector< Estimate<double> >&
get_angles ()
const
89 std::vector< Estimate<double> >
angles;
95 std::ostream& operator << (std::ostream& os, AnglePlot::Marker);
96 std::istream& operator >> (std::istream& is, AnglePlot::Marker&);
void prepare(const Archive *)
return the minimum and maximum value in degrees
Definition AnglePlot.C:37
void set_span(float t)
span of value in degrees
Definition AnglePlot.h:69
void set_marker(Marker m)
the mark to be used
Definition AnglePlot.h:61
void set_threshold(float t)
will draw only those points with linear > threshold * sigma
Definition AnglePlot.h:65
float threshold
Noise threshold.
Definition AnglePlot.h:83
AnglePlot()
Default constructor.
Definition AnglePlot.C:22
std::string get_flux_label(const Archive *data)
Return the label for the y-axis.
Definition AnglePlot.C:208
float span
Span of values in degrees.
Definition AnglePlot.h:86
void draw(const Archive *)
draw the angle as a function of pulse phase
Definition AnglePlot.C:95
virtual void get_angles(const Archive *)=0
Derived types compute the angles to be plotted.
std::vector< Estimate< double > > angles
The angles.
Definition AnglePlot.h:89
void set_chan(const Index &_ichan)
Set the frequency channel to plot (where applicable)
Definition AnglePlot.h:57
Marker marker
Marker used to plot each point.
Definition AnglePlot.h:80
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition AnglePlot.C:32
void set_subint(const Index &_isubint)
Set the sub-integration to plot (where applicable)
Definition AnglePlot.h:53
The primary interface to pulsar observational data.
Definition Archive.h:46
Combines an index value and integrate flag.
Definition Index.h:19
PhasePlot()
Default constructor.
Definition PhasePlot.C:11
Defines the PSRCHIVE library.
Definition CalSource.h:17