StokesFluctPhase.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Plotting/Pulsar/StokesFluctPhase.h
10
11#ifndef __Pulsar_StokesFluctPhase_h
12#define __Pulsar_StokesFluctPhase_h
13
14#include "Pulsar/FluctPlot.h"
15
16namespace Pulsar {
17
18 class Profile;
19
21 class StokesFluctPhase : public FluctPlot {
22
23 public:
24
27
30
31 // Text interface to the StokesFluctPhase class
32 class Interface : public TextInterface::To<StokesFluctPhase> {
33 public:
34 Interface (StokesFluctPhase* = 0);
35 };
36
38 void draw (const Archive*);
39
41 std::string get_ylabel (const Archive*);
42
44 void get_profiles (const Archive*);
45
47 void set_plot_values (const std::string& plot) { plot_values = plot; }
48 std::string get_plot_values () const { return plot_values; }
49
51 void set_signal_to_noise (const bool plot) { signal_to_noise = plot; }
52 bool get_signal_to_noise () const { return signal_to_noise; }
53
55 void set_plot_colours (const std::string& plot) { plot_colours = plot; }
56 std::string get_plot_colours () const { return plot_colours; }
57
59 void set_plot_lines (const std::string& plot) { plot_lines = plot; }
60 std::string get_plot_lines () const { return plot_lines; }
61
63 void set_plot_last_harmonic (bool p) { plot_last_harmonic = p; }
64 bool get_plot_last_harmonic () const { return plot_last_harmonic; }
65
66 protected:
67
68 bool signal_to_noise;
69 std::string plot_values;
70 std::string plot_colours;
71 std::string plot_lines;
72
73 bool plot_last_harmonic;
74 unsigned last_harmonic;
75
76 };
77
78}
79
80#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
FluctPlot()
Default constructor.
Definition FluctPlot.C:10
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
virtual void plot(const Archive *)
Plot in the current viewport.
Definition SimplePlot.C:15
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition StokesFluctPhase.C:51
void set_signal_to_noise(const bool plot)
Signal-to-noise ratio on the y-axis.
Definition StokesFluctPhase.h:51
void set_plot_colours(const std::string &plot)
Set the colour for each value plotted.
Definition StokesFluctPhase.h:55
void set_plot_last_harmonic(bool p)
Plot the last significant harmonic.
Definition StokesFluctPhase.h:63
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition StokesFluctPhase.C:31
StokesFluctPhase()
Default constructor.
Definition StokesFluctPhase.C:22
void set_plot_values(const std::string &plot)
Set the values to be plotted (one or more of I,Q,U,V,L,p)
Definition StokesFluctPhase.h:47
void get_profiles(const Archive *)
Return the fluctuation power spectra to be plotted.
Definition StokesFluctPhase.C:64
void draw(const Archive *)
Draw the profiles in the currently open window.
Definition StokesFluctPhase.C:37
void set_plot_lines(const std::string &plot)
Set the line style for each value plotted.
Definition StokesFluctPhase.h:59
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0