CalibratorPlotter.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2003 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/CalibratorPlotter.h
10 
11 #ifndef __CalibratorPlotter_H
12 #define __CalibratorPlotter_H
13 
14 #include "Pulsar/Calibrator.h"
15 
16 namespace Pulsar {
17 
19  class CalibratorPlotter : public Reference::Able
20  {
21 
22  public:
23 
25  static bool verbose;
26 
29 
31  virtual ~CalibratorPlotter ();
32 
34  virtual void plot (const Calibrator* calibrator);
35 
37  virtual void plot (const Calibrator::Info* info, unsigned nchan,
38  double centre_frequency, double bandwidth);
39 
41  void plot_labels (const Calibrator::Info* info);
42 
44  void set_display_mean_single_line(const bool _display_mean_single_line);
45 
47  bool get_display_mean_single_line() const;
48 
50  unsigned npanel;
51 
53  float between_panels;
54 
56  bool use_colour;
57 
59  bool print_titles;
60 
62  bool plot_error_bars;
63 
65  std::string title;
66 
67  private:
68 
70  // should be displayed
71  bool display_mean_single_line;
72 
73  };
74 
75 }
76 
77 #endif
CalibratorPlotter()
Default constructor.
Definition: CalibratorPlotter.C:22
virtual std::string get_name(unsigned iclass) const =0
Return the name of the specified class.
static bool verbose
Verbosity flag.
Definition: CalibratorPlotter.h:35
Polarization and flux calibrators.
Definition: Calibrator.h:34
std::string title
Title to print over top panel.
Definition: CalibratorPlotter.h:75
float between_panels
Fraction of total plotting space placed between panels.
Definition: CalibratorPlotter.h:63
virtual int get_graph_marker(unsigned iclass, unsigned iparam) const
Return the graph marker.
Definition: Calibrator.h:189
void set_display_mean_single_line(const bool _display_mean_single_line)
Set whether the default output from EstimatePlotter is displayed.
Definition: CalibratorPlotter.C:294
unsigned npanel
Number of panels (vertical)
Definition: CalibratorPlotter.h:60
virtual Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const =0
Return the estimate of the specified parameter.
virtual std::string get_title() const =0
Return the title to print above the plot.
bool plot_error_bars
Plot error bars.
Definition: CalibratorPlotter.h:72
bool print_titles
Print titles over top of panel.
Definition: CalibratorPlotter.h:69
Definition: Calibrator.h:152
void plot_labels(const Calibrator::Info *info)
Plot the titles over the plot frames.
Definition: CalibratorPlotter.C:279
virtual int get_colour_index(unsigned iclass, unsigned iparam) const
Return the colour index.
Definition: Calibrator.h:185
virtual unsigned get_nparam(unsigned iclass) const =0
Return the number of parameters in the specified class.
bool get_display_mean_single_line() const
Get whether the default output from EstimatePlotter is displayed.
Definition: CalibratorPlotter.C:299
virtual void plot(const Calibrator *calibrator)
Plot the Pulsar::Calibrator.
Definition: CalibratorPlotter.C:37
Defines the PSRCHIVE library.
Definition: CalSource.h:17
virtual ~CalibratorPlotter()
Destructor.
Definition: CalibratorPlotter.C:32
virtual unsigned get_nclass() const =0
Return the number of parameter classes.
bool use_colour
Use colour in plots.
Definition: CalibratorPlotter.h:66

Generated using doxygen 1.8.17