ERIS Pipeline Reference Manual 1.9.2
sc_plot.h
Go to the documentation of this file.
1/*
2 * This file is part of the SKYCORR software package.
3 * Copyright (C) 2009-2013 European Southern Observatory
4 *
5 * This programme is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This programme is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this programme. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
35/*****************************************************************************
36 * INCLUDES *
37 ****************************************************************************/
38
39#include <sc_basic.h>
40
41/*****************************************************************************
42 * DEFINES *
43 ****************************************************************************/
44
45#ifdef HAVE_CONFIG_H
46#include <config.h>
47#endif
48
49#ifndef SC_PLOT_H
50#define SC_PLOT_H
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56/*****************************************************************************
57 * TYPEDEF *
58 ****************************************************************************/
59
60typedef struct _scplottags_ {
61 char title[SC_MAXLEN];
62 char xlabel[SC_MAXLEN];
63 char ylabel[SC_MAXLEN];
64} scplottags;
65
66/*****************************************************************************
67 * GLOBALS *
68 ****************************************************************************/
69
70/*****************************************************************************
71 * PROTOTYPES *
72 ****************************************************************************/
73
74cpl_error_code sc_plot_single_spec(const cpl_table *spec,
75 cpl_parameterlist *plottags);
76
77/*cpl_error_code sc_plot_double_spec(const cpl_table *spec1,
78 const cpl_table *spec2,
79 cpl_parameterlist *parlist);*/
80cpl_error_code sc_plot_double_spec(const cpl_table *spec1,
81 const cpl_table *spec2,
82 cpl_parameterlist *plottags);
83
84cpl_error_code sc_overplot_spec(const cpl_table *spec,
85 cpl_parameterlist *plottags);
86
87cpl_error_code sc_plot_hist(const cpl_table *histdat,
88 cpl_parameterlist *plottags);
89cpl_error_code sc_plot_single_spec_with_lines(const cpl_table *spec,
90 cpl_parameterlist *plottags);
91
92/* Plot tag routines */
93void sc_setplottags_single_spec(cpl_parameterlist *plottags,
94 const char *x_column,
95 const char *y_column,
96 const char *title,
97 const char *x_label,
98 const char *y_label,
99 const cpl_parameterlist *parlist);
100void sc_setplottags_double_spec(cpl_parameterlist *plottags,
101 const char *x_column1,
102 const char *y_column1,
103 const char *title1,
104 const char *x_label1,
105 const char *y_label1,
106 const char *x_column2,
107 const char *y_column2,
108 const char *title2,
109 const char *x_label2,
110 const char *y_label2,
111 const cpl_parameterlist *parlist);
112void sc_setplottags_overplot_spec(cpl_parameterlist *plottags,
113 const char *x_column,
114 const char *y_column1,
115 const char *y_column2,
116 const char *specname1,
117 const char *specname2,
118 const char *title,
119 const char *x_label,
120 const char *y_label,
121 const cpl_parameterlist *parlist);
122void sc_setplottags_hist(cpl_parameterlist *plottags, const char *title,
123 const char *x_label, const char *y_label,
124 const cpl_parameterlist *parlist);
125void sc_setplottags_single_spec_lines(cpl_parameterlist *plottags,
126 const char *title,
127 const char *x_label,
128 const char *y_label,
129 const cpl_parameterlist *parlist);
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif
#define SC_MAXLEN
Definition: sc_basic.h:94
cpl_error_code sc_plot_single_spec_with_lines(const cpl_table *spec, cpl_parameterlist *plottags)
Definition: sc_plot.c:1731
void sc_setplottags_overplot_spec(cpl_parameterlist *plottags, const char *x_column, const char *y_column1, const char *y_column2, const char *specname1, const char *specname2, const char *title, const char *x_label, const char *y_label, const cpl_parameterlist *parlist)
Definition: sc_plot.c:802
void sc_setplottags_single_spec_lines(cpl_parameterlist *plottags, const char *title, const char *x_label, const char *y_label, const cpl_parameterlist *parlist)
Definition: sc_plot.c:1664
cpl_error_code sc_overplot_spec(const cpl_table *spec, cpl_parameterlist *plottags)
Definition: sc_plot.c:893
cpl_error_code sc_plot_double_spec(const cpl_table *spec1, const cpl_table *spec2, cpl_parameterlist *plottags)
Definition: sc_plot.c:464
cpl_error_code sc_plot_single_spec(const cpl_table *spec, cpl_parameterlist *plottags)
Definition: sc_plot.c:139
void sc_setplottags_double_spec(cpl_parameterlist *plottags, const char *x_column1, const char *y_column1, const char *title1, const char *x_label1, const char *y_label1, const char *x_column2, const char *y_column2, const char *title2, const char *x_label2, const char *y_label2, const cpl_parameterlist *parlist)
Definition: sc_plot.c:366
void sc_setplottags_hist(cpl_parameterlist *plottags, const char *title, const char *x_label, const char *y_label, const cpl_parameterlist *parlist)
Definition: sc_plot.c:1366
cpl_error_code sc_plot_hist(const cpl_table *histdat, cpl_parameterlist *plottags)
Definition: sc_plot.c:1430
void sc_setplottags_single_spec(cpl_parameterlist *plottags, const char *x_column, const char *y_column, const char *title, const char *x_label, const char *y_label, const cpl_parameterlist *parlist)
Definition: sc_plot.c:66