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
17namespace Pulsar
18{
19
21 class BandpassChannelWeightPlot : public MultiPlot
22 {
23 public:
24 BandpassChannelWeightPlot();
25 ~BandpassChannelWeightPlot();
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
The primary interface to pulsar observational data.
Definition Archive.h:46
virtual void preprocess(Archive *data)
Process the Archive as needed before calling plot.
Definition BandpassChannelWeightPlot.h:37
void prepare(const Archive *data)
Derived classes may wish to prepare before plotting.
Definition BandpassChannelWeightPlot.C:45
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition BandpassChannelWeightPlot.C:38
virtual PlotFrame * get_frame()
Get the frame.
Definition FramedPlot.C:27
MultiPlot()
Default constructor.
Definition MultiPlot.C:17
PlotScale * get_x_scale(bool allow_transpose)
Get the x-scale.
Definition PlotFrame.C:189
Plots a single spectrum.
Definition SpectrumPlot.h:23
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0