TwoBitPlot.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/TwoBitPlot.h
10 
11 #ifndef __Pulsar_TwoBitPlot_h
12 #define __Pulsar_TwoBitPlot_h
13 
14 #include "Pulsar/SimplePlot.h"
15 #include "JenetAnderson98Plot.h"
16 
17 namespace Pulsar {
18 
20  class TwoBitPlot : public SimplePlot {
21 
22  public:
23 
26 
29 
30  // Text interface to the TwoBitPlot class
31  class Interface : public TextInterface::To<TwoBitPlot> {
32  public:
33  Interface (TwoBitPlot* = 0);
34  };
35 
37  void draw (const Archive*);
38 
40  void prepare (const Archive*);
41 
43  std::string get_ylabel (const Archive*);
44 
46  std::string get_xlabel (const Archive*);
47 
48  protected:
49 
51 
52  };
53 
54 }
55 
56 #endif
The primary interface to pulsar observational data.
Definition: Archive.h:45
Type * get() const
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition: TwoBitPlot.C:20
void prepare(const Archive *)
Perform any preprocessing steps.
Definition: TwoBitPlot.C:76
void draw(const Archive *)
Derived classes must draw in the current viewport.
Definition: TwoBitPlot.C:32
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: TwoBitPlot.C:14
TwoBitPlot()
Default constructor.
Definition: TwoBitPlot.C:10
Plots the distribution of Phi.
Definition: JenetAnderson98Plot.h:11
Stores histograms of two-bit low-voltage states.
Definition: TwoBitStats.h:30
Plots the measured distribution of the fraction of low voltage states.
Definition: TwoBitPlot.h:25
std::string get_xlabel(const Archive *)
Get the default label for the x axis.
Definition: TwoBitPlot.C:26
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17