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 84 85
|
/*
* PXplot.h - external procedure declarations
*/
#ifndef PXplot_defined
#define PXplot_defined
/* Postscript variables */
#define PX_RAW 0
#define PX_EPSI 1
#define PX_EPSF 2
/*
* The colors are stored in a array with 55 elements.
* The first 13 are named colors: 0 = foreground, 1 = background and
* the remaining 11 are colors like yellow, red, etc.
* The next 32 colors are fill colors which ramp from blue to red.
* The next 10 colors are pixel values selected from among the previous 42
* colors to provide a set of contrasting colors for lines.
*
* To access the colors, the user sets the line color from -1 to inf;
* -1 returns the background color, 0 returns the foreground color, and
* 1-inf returns one of 10 line colors.
*/
/*
* Line/fill colors
*/
#define PX_MAX_NAMED_COLORS 13
#define PX_MAX_FILL_COLORS 32
#define PX_MAX_LINE_COLORS 10
#define PX_MAX_COLORS PX_MAX_NAMED_COLORS+PX_MAX_FILL_COLORS+PX_MAX_LINE_COLORS
/*
* Fonts
*/
#define PX_MAX_FONTS 10
/*
* Data-structure for axis label placement
*/
#define PX_MAX_LABELS 100 /* Max number of labels on an axis */
typedef struct PXlabel_strct {
double value;
double x;
double y;
} PXlabel;
/* X11 Initialization */
extern int PXinitXWindow();
/* X11 Rectangles (for rubberbands) */
extern void PXDrawRectangle();
/* Postscript plotting */
extern void PXplotps();
extern void PXplotps_mult();
/* X11 plotting */
extern int PXdrawplotX();
/* Translation */
extern void PXtranslate_world_to_X11();
extern void PXtranslate_X11_to_world();
/* Generic viewport utilities for plotting */
extern void PXcheck_viewport();
extern void PXconvert_viewport_to_log();
extern void PXtranslate_range();
extern void PXget_autorange();
extern void PXidentify_view_planes();
extern void PXfind_outer_axes();
extern void PXquery_contours();
extern int PXquery_labels();
extern int PXnamedColorIndex();
extern int PXlineColorIndex();
extern int PXfillColorIndex();
extern void PXadd_axislabel();
extern void PXfind_axis_precision();
extern void PXmodify_explabel();
#endif /* PXplot_defined */
|