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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
/*
* plotps.h - variables and declarations used by all PostScript routines
*/
#include <stdio.h>
#include <strings.h>
#include <math.h>
#include "PXplot.h"
#ifndef plotps_defined
#define plotps_defined
/*
* EXTERNAL DECLARATIONS
*/
extern void PXplotps2D();
extern void PXplotps3D();
extern int PXlinetypPS();
extern void PXmarkerPS();
extern void PXnamedColorPS();
extern void PXlineColorPS();
extern void PXfillColorPS();
extern void PXsetColorPS();
extern int PXpolyColorIndexPS();
extern void PXfillPS_polygon();
extern void PXdrawPS_line();
extern void PXplotPS_linelabels();
extern void PXplotPS_contscale();
extern void PXtranslate_world_to_PS();
extern void PXtranslate_PS_to_world();
extern char *PXmodifyPS_string();
typedef struct _PSPoint {
double x;
double y;
} PSPoint;
/* Borders */
#define PX_DIM 600
#define PY_DIM 800
#define PXL_DIM 800
#define PYL_DIM 600
#define PBDR_DIM 100
/* Misc */
#define MAXCHR CN_MAXCHAR
/* Plot scale */
extern double scale;
extern double fscale;
/* Landscape */
extern short landscape;
/* Print the date */
extern short printdate;
/* Color */
extern short pscolor;
/* PS page dimensions */
extern double Pgxmin, Pgxmax, Pgymin, Pgymax;
/* FILE */
extern FILE *ips;
/* Font sizes */
#define PS_TOPFONT 25
#define PS_SIDEFONT 20
#define PS_AXISFONT 15
#define PS_MKRSFONT 12
#define PS_ANNOTFONT 12
#define PS_DATEFONT 10
#define PS_CTRFONT 8
#endif /* plotps_defined */
|