Leptonica  1.82.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 6
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  GPLOT_PNM = 5,
63 };
64 
67  GPLOT_LOG_SCALE_X = 1,
68  GPLOT_LOG_SCALE_Y = 2,
69  GPLOT_LOG_SCALE_X_Y = 3
70 };
71 
72 extern const char *gplotstylenames[];
73 extern const char *gplotfileoutputs[];
76 struct GPlot
77 {
78  char *rootname;
79  char *cmdname;
80  struct Sarray *cmddata;
81  struct Sarray *datanames;
82  struct Sarray *plotdata;
83  struct Sarray *plotlabels;
84  struct Numa *plotstyles;
85  l_int32 nplots;
86  char *outname;
87  l_int32 outformat;
88  l_int32 scaling;
89  char *title;
90  char *xlabel;
91  char *ylabel;
92 };
93 typedef struct GPlot GPLOT;
94 
95 
96 #endif /* LEPTONICA_GPLOT_H */
const char * gplotstylenames[]
Definition: gplot.c:152
GPLOT_SCALING
Definition: gplot.h:65
@ GPLOT_LINEAR_SCALE
Definition: gplot.h:66
const char * gplotfileoutputs[]
Definition: gplot.c:157
Definition: gplot.h:77
struct Sarray * datanames
Definition: gplot.h:81
char * title
Definition: gplot.h:89
l_int32 nplots
Definition: gplot.h:85
char * rootname
Definition: gplot.h:78
struct Sarray * plotdata
Definition: gplot.h:82
char * cmdname
Definition: gplot.h:79
char * outname
Definition: gplot.h:86
struct Numa * plotstyles
Definition: gplot.h:84
struct Sarray * plotlabels
Definition: gplot.h:83
l_int32 scaling
Definition: gplot.h:88
char * ylabel
Definition: gplot.h:91
struct Sarray * cmddata
Definition: gplot.h:80
l_int32 outformat
Definition: gplot.h:87
char * xlabel
Definition: gplot.h:90
Definition: array.h:71
Definition: array.h:127