FreqVsSNRPlot.h
1
2/***************************************************************************
3 *
4 * Copyright (C) 2008 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Plotting/Pulsar/FreqVsSNRPlot.h
10
11#ifndef Freq_Vs_SNR_Plot_h_
12#define Freq_Vs_SNR_Plot_h_
13
14#include "Pulsar/FrequencyPlot.h"
15
16namespace Pulsar
17{
18 class FreqVsSNRPlot : public FrequencyPlot
19 {
20 public:
21 FreqVsSNRPlot();
22
23 void prepare( const Pulsar::Archive * );
24 void draw( const Pulsar::Archive * );
25
26 TextInterface::Parser *get_interface();
27
28 void set_pol( unsigned new_pol ) { pol = new_pol; }
29 void set_subint( unsigned new_subint ) { subint = new_subint; }
30
31 unsigned get_pol() const { return pol; }
32 unsigned get_subint() const { return subint; }
33
34 class Interface : public TextInterface::To<FreqVsSNRPlot>
35 {
36 public:
37 Interface( FreqVsSNRPlot *s_instance );
38 };
39
40 private:
41
42 unsigned subint;
43 unsigned pol;
44
45 std::vector <float> snrs;
46
47 };
48}
49
50#endif
51
Simple plots with radio frequency along the x-axis.
Definition FrequencyPlot.h:22
virtual TextInterface::Parser * get_interface()=0
Get the text interface to the configuration attributes.
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0