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 
16 namespace Pulsar {
17 
19  class StokesPlot : public FluxPlot {
20 
21  public:
22 
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
void set_plot_colours(const std::string &plot)
Set the colour for each value plotted.
Definition: StokesPlot.h:53
const PolnProfile * get_Stokes(const Archive *data, Index subint, Index chan)
Return a new PolnProfile with state == Signal::Stokes.
Definition: Index.C:158
void set_pav_bias(bool flag)
Correct the bias to L and p as is done in pav.
Definition: StokesPlot.C:67
The primary interface to pulsar observational data.
Definition: Archive.h:45
const Profile * new_Profile(const PolnProfile *data, char code)
Return a possibly newly constructed Profile with state specified by code.
Definition: Polarization.C:35
Plots a polarization pulse profile.
Definition: StokesPlot.h:24
void set_plot_widths(const std::string &plot)
Set the line width for each value plotted.
Definition: StokesPlot.h:61
void set_plot_lines(const std::string &plot)
Set the line style for each value plotted.
Definition: StokesPlot.h:57
StokesPlot()
Default constructor.
Definition: StokesPlot.C:15
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: StokesPlot.C:23
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:49
virtual void plot(const Archive *)
Plot in the current viewport.
Definition: SimplePlot.C:15
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void get_profiles(const Archive *data)
Load the profiles.
Definition: StokesPlot.C:28

Generated using doxygen 1.8.17