UVES Pipeline Reference Manual  5.4.6
uves_plot.h
1 /*
2  * This file is part of the ESO UVES Pipeline
3  * Copyright (C) 2004,2005 European Southern Observatory
4  *
5  * This program 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 program 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 program; if not, write to the Free Software
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 
20 /*
21  * $Author: amodigli $
22  * $Date: 2011-12-08 13:56:00 $
23  * $Revision: 1.11 $
24  * $Name: not supported by cvs2svn $
25  * $Log: not supported by cvs2svn $
26  * Revision 1.10 2010/09/24 09:32:07 amodigli
27  * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data
28  *
29  * Revision 1.8 2007/06/06 08:17:33 amodigli
30  * replace tab with 4 spaces
31  *
32  * Revision 1.7 2007/05/22 11:31:35 jmlarsen
33  * Removed image plotting functionality
34  *
35  * Revision 1.6 2006/08/23 15:09:25 jmlarsen
36  * Added uves_plot_bivectors
37  *
38  * Revision 1.5 2006/08/17 13:56:53 jmlarsen
39  * Reduced max line length
40  *
41  * Revision 1.4 2005/12/19 16:17:56 jmlarsen
42  * Replaced bool -> int
43  *
44  */
45 #ifndef UVES_PLOT_H
46 #define UVES_PLOT_H
47 #include <uves_cpl_size.h>
48 #include <cpl.h>
49 
50 cpl_error_code
51 uves_plot_initialize(const char *plotter_command);
52 
53 cpl_error_code
54 uves_plot_table(const cpl_table *table, const char *colx, const char *coly,
55  const char *format, ...)
56 #ifdef __GNUC__
57 __attribute__((format (printf, 4, 5)))
58 #endif
59 ;
60 
61 cpl_error_code
62 uves_plot_image_rows(const cpl_image *image, int first_row, int last_row, int step,
63  const char *xtitle, const char *ytitle, const char *format, ...)
64 #ifdef __GNUC__
65 __attribute__((format (printf, 7, 8)))
66 #endif
67 ;
68 
69 void
70 uves_plot_bivectors(cpl_bivector **bivectors, char **titles,
71  int N, const char *xtitle,
72  const char *ytitle);
73 
74 cpl_error_code
75 uves_plot_image_columns(const cpl_image *image, int first_column, int last_column, int step,
76  const char *xtitle, const char *ytitle, const char *format, ...)
77 #ifdef __GNUC__
78 __attribute__((format (printf, 7, 8)))
79 #endif
80 ;
81 
82 #endif