PhasePlot.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/PhasePlot.h
10 
11 #ifndef __Pulsar_PhasePlot_h
12 #define __Pulsar_PhasePlot_h
13 
14 #include "Pulsar/SimplePlot.h"
15 #include "Pulsar/HasPhaseScale.h"
16 
17 #include <vector>
18 
19 namespace Pulsar {
20 
22  class PhasePlot : public SimplePlot, public HasPhaseScale
23  {
24 
25  public:
26 
28  PhasePlot ();
29 
32 
33  // Text interface to the PhasePlot class
34  class Interface : public TextInterface::To<PhasePlot> {
35  public:
36  Interface (PhasePlot* = 0);
37  };
38 
40  std::string get_xlabel (const Archive*);
41 
43  std::string get_ylabel (const Archive*);
44 
46  void set_yrange (float min, float max);
47 
49  PhaseScale* get_scale ();
50 
51  };
52 
53 }
54 
55 #endif
The primary interface to pulsar observational data.
Definition: Archive.h:45
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: PhasePlot.C:16
void set_x_scale(PlotScale *scale)
Set the x-scale.
Definition: PlotFrame.C:198
PhasePlot()
Default constructor.
Definition: PhasePlot.C:11
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition: PhasePlot.C:28
PhaseScale * get_scale()
Get the scale.
Definition: PhasePlot.C:39
Reperesents an axis with pulse phase ordinate.
Definition: PhaseScale.h:27
virtual PlotFrame * get_frame()
Get the frame.
Definition: FramedPlot.C:27
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void set_yrange(float min, float max)
Set the y-range.
Definition: PhasePlot.C:33
std::string get_xlabel(const Archive *)
Get the default label for the x axis.
Definition: PhasePlot.C:22

Generated using doxygen 1.8.17