Leptonica  1.77.0
Image processing and image analysis suite
gplot.h
Go to the documentation of this file.
1 /*====================================================================*
2  - Copyright (C) 2001 Leptonica. All rights reserved.
3  -
4  - Redistribution and use in source and binary forms, with or without
5  - modification, are permitted provided that the following conditions
6  - are met:
7  - 1. Redistributions of source code must retain the above copyright
8  - notice, this list of conditions and the following disclaimer.
9  - 2. Redistributions in binary form must reproduce the above
10  - copyright notice, this list of conditions and the following
11  - disclaimer in the documentation and/or other materials
12  - provided with the distribution.
13  -
14  - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16  - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17  - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANY
18  - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  - OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  *====================================================================*/
26 
27 #ifndef LEPTONICA_GPLOT_H
28 #define LEPTONICA_GPLOT_H
29 
44 #define GPLOT_VERSION_NUMBER 1
45 
46 #define NUM_GPLOT_STYLES 5
47 enum GPLOT_STYLE {
48  GPLOT_LINES = 0,
49  GPLOT_POINTS = 1,
50  GPLOT_IMPULSES = 2,
51  GPLOT_LINESPOINTS = 3,
52  GPLOT_DOTS = 4
53 };
54 
55 #define NUM_GPLOT_OUTPUTS 5
56 enum GPLOT_OUTPUT {
57  GPLOT_NONE = 0,
58  GPLOT_PNG = 1,
59  GPLOT_PS = 2,
60  GPLOT_EPS = 3,
61  GPLOT_LATEX = 4
62 };
63 
66  GPLOT_LOG_SCALE_X = 1,
67  GPLOT_LOG_SCALE_Y = 2,
68  GPLOT_LOG_SCALE_X_Y = 3
69 };
70 
71 extern const char *gplotstylenames[];
72 extern const char *gplotfileoutputs[];
75 struct GPlot
76 {
77  char *rootname;
78  char *cmdname;
79  struct Sarray *cmddata;
80  struct Sarray *datanames;
81  struct Sarray *plotdata;
82  struct Sarray *plottitles;
83  struct Numa *plotstyles;
84  l_int32 nplots;
85  char *outname;
86  l_int32 outformat;
87  l_int32 scaling;
88  char *title;
89  char *xlabel;
90  char *ylabel;
91 };
92 typedef struct GPlot GPLOT;
93 
94 
95 #endif /* LEPTONICA_GPLOT_H */
const char * gplotstylenames[]
Definition: gplot.c:105
GPLOT_SCALING
Definition: gplot.h:64
char * title
Definition: gplot.h:88
const char * gplotfileoutputs[]
Definition: gplot.c:110
struct Numa * plotstyles
Definition: gplot.h:83
struct Sarray * datanames
Definition: gplot.h:80
char * xlabel
Definition: gplot.h:89
struct Sarray * cmddata
Definition: gplot.h:79
char * outname
Definition: gplot.h:85
Definition: array.h:116
Definition: array.h:59
Definition: gplot.h:75
char * cmdname
Definition: gplot.h:78
char * rootname
Definition: gplot.h:77
struct Sarray * plotdata
Definition: gplot.h:81
l_int32 nplots
Definition: gplot.h:84
l_int32 scaling
Definition: gplot.h:87
l_int32 outformat
Definition: gplot.h:86
struct Sarray * plottitles
Definition: gplot.h:82
char * ylabel
Definition: gplot.h:90