BandpassChannelWeightPlot.h
1 
2 
3 
4 
5 #ifndef BANDPASS_CHANNEL_WEIGHT_PLOT_H_
6 #define BANDPASS_CHANNEL_WEIGHT_PLOT_H_
7 
8 
9 
10 #include "Pulsar/MultiPlot.h"
11 #include "Pulsar/SpectrumPlot.h"
12 
13 #include "Pulsar/ChannelWeightsPlot.h"
14 
15 
16 
17 namespace Pulsar
18 {
19 
22  {
23  public:
26 
27  class Interface : public TextInterface::To<BandpassChannelWeightPlot>
28  {
29  public:
30  Interface( BandpassChannelWeightPlot *s_instance = NULL );
31  };
32 
34 
35  void prepare( const Archive *data );
36 
37  virtual void preprocess( Archive *data ) {};
38 
39  SpectrumPlot *get_psd() { return &psd; }
40  ChannelWeightsPlot *get_weights() { return &weights; }
41 
42  PlotScale *get_x_scale() { return psd.get_frame()->get_x_scale(); }
43  PlotScale *get_y_scale() { return psd.get_frame()->get_y_scale(); }
44 
45  private:
46  SpectrumPlot psd;
47  ChannelWeightsPlot weights;
48  };
49 
50 
51 }
52 
53 #endif
54 
55 
Plots multiple viewports.
Definition: MultiPlot.h:27
void prepare(const Archive *data)
Derived classes may wish to prepare before plotting.
Definition: BandpassChannelWeightPlot.C:45
PlotScale * get_y_scale(bool allow_transpose)
Get the x-scale.
Definition: PlotFrame.C:213
The primary interface to pulsar observational data.
Definition: Archive.h:45
Plot of offpulse bandpass and channel weights.
Definition: BandpassChannelWeightPlot.h:21
Plots a single spectrum.
Definition: SpectrumPlot.h:27
PlotScale * get_x_scale(bool allow_transpose)
Get the x-scale.
Definition: PlotFrame.C:189
virtual PlotFrame * get_frame()
Get the frame.
Definition: FramedPlot.C:27
Defines the PSRCHIVE library.
Definition: CalSource.h:17
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: BandpassChannelWeightPlot.C:38
virtual void preprocess(Archive *data)
Process the Archive as needed before calling plot.
Definition: BandpassChannelWeightPlot.h:37

Generated using doxygen 1.8.17