-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathps.h
More file actions
47 lines (36 loc) · 1.15 KB
/
ps.h
File metadata and controls
47 lines (36 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
-------------------------------------------------------------------------
OBJECT NAME: ps.h
FULL NAME: Printing/PostScript header include file.
DESCRIPTION:
COPYRIGHT: University Corporation for Atmospheric Research, 1997-2022
-------------------------------------------------------------------------
*/
#ifndef PS_H
#define PS_H
enum layout { LANDSCAPE, PORTRAIT };
typedef struct
{
std::string lpCommand;
double width, height; /* Plot Size (!frame size) */
double widthRatio, heightRatio, fontRatio;
int shape;
int dpi; /* Dots Per Inch */
bool color;
} PRINTER;
extern PRINTER printerSetup;
extern const char *show, *rightShow, *lineto, *moveto;
FILE *openPSfile(char *outFile);
void PSheader(FILE *, PLOT_INFO *),
PStitles(FILE *, PLOT_INFO *, bool),
PSlabels(FILE *, PLOT_INFO *),
PSwarning(FILE *, PLOT_INFO *),
PSbox(FILE *, PLOT_INFO *),
PSxTics(FILE *, PLOT_INFO *, bool),
PSyTics(FILE *, PLOT_INFO *, int, bool),
PSxTicsLog(FILE *, PLOT_INFO *),
PSstatsLegend(FILE *, PLOT_INFO *, char *title, int ylegend, DATASET_INFO *),
PSstatsTitle(FILE *, PLOT_INFO *, int ylegend),
closePSfile(FILE *),
SetPlotRatios(PLOT_INFO *);
#endif