StokesPlot.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/StokesPlot.h
10
11#ifndef __Pulsar_StokesPlot_h
12#define __Pulsar_StokesPlot_h
13
14#include "Pulsar/FluxPlot.h"
15
16namespace Pulsar {
17
19 class StokesPlot : public FluxPlot {
20
21 public:
22
24 StokesPlot ();
25
28
29 // Text interface to the StokesPlot class
30 class Interface : public TextInterface::To<StokesPlot> {
31 public:
32 Interface (StokesPlot* = 0);
33 };
34
36 void get_profiles (const Archive* data);
37
39 void set_plot_values (const std::string& plot) { plot_values = plot; }
40 std::string get_plot_values () const { return plot_values; }
41
43 void set_plot_colours (const std::string& plot) { plot_colours = plot; }
44 std::string get_plot_colours () const { return plot_colours; }
45
47 void set_plot_lines (const std::string& plot) { plot_lines = plot; }
48 std::string get_plot_lines () const { return plot_lines; }
49
51 void set_plot_widths (const std::string& plot) { plot_widths = plot; }
52 std::string get_plot_widths () const { return plot_widths; }
53
55 void set_pav_bias (bool flag);
56 bool get_pav_bias () const;
57
58 protected:
59
60 std::string plot_values;
61 std::string plot_colours;
62 std::string plot_lines;
63 std::string plot_widths;
64
65 };
66
67}
68
69#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
FluxPlot()
Default constructor.
Definition FluxPlot.C:27
virtual void plot(const Archive *)
Plot in the current viewport.
Definition SimplePlot.C:15
void set_plot_colours(const std::string &plot)
Set the colour for each value plotted.
Definition StokesPlot.h:43
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 StokesPlot.h:39
StokesPlot()
Default constructor.
Definition StokesPlot.C:15
void get_profiles(const Archive *data)
Load the profiles.
Definition StokesPlot.C:28
void set_plot_lines(const std::string &plot)
Set the line style for each value plotted.
Definition StokesPlot.h:47
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition StokesPlot.C:23
void set_pav_bias(bool flag)
Correct the bias to L and p as is done in pav.
Definition StokesPlot.C:67
void set_plot_widths(const std::string &plot)
Set the line width for each value plotted.
Definition StokesPlot.h:51
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0