[BACK]Return to setshow.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Annotation of OpenXM_contrib/gnuplot/setshow.h, Revision 1.1.1.3

1.1       maekawa     1: /*
1.1.1.3 ! ohara       2:  * $Id: setshow.h,v 1.3.2.3 1999/12/09 18:43:41 lhecking Exp $
1.1       maekawa     3:  *
                      4:  */
                      5:
                      6: /* GNUPLOT - setshow.h */
                      7:
                      8: /*[
                      9:  * Copyright 1986 - 1993, 1998   Thomas Williams, Colin Kelley
                     10:  *
                     11:  * Permission to use, copy, and distribute this software and its
                     12:  * documentation for any purpose with or without fee is hereby granted,
                     13:  * provided that the above copyright notice appear in all copies and
                     14:  * that both that copyright notice and this permission notice appear
                     15:  * in supporting documentation.
                     16:  *
                     17:  * Permission to modify the software is granted, but not the right to
                     18:  * distribute the complete modified source code.  Modifications are to
                     19:  * be distributed as patches to the released version.  Permission to
                     20:  * distribute binaries produced by compiling modified sources is granted,
                     21:  * provided you
                     22:  *   1. distribute the corresponding source modifications from the
                     23:  *    released version in the form of a patch file along with the binaries,
                     24:  *   2. add special version identification to distinguish your version
                     25:  *    in addition to the base release version number,
                     26:  *   3. provide your name and address as the primary contact for the
                     27:  *    support of your modified version, and
                     28:  *   4. retain our contact information in regard to use of the base
                     29:  *    software.
                     30:  * Permission to distribute the released version of the source code along
                     31:  * with corresponding source modifications in the form of a patch file is
                     32:  * granted with same provisions 2 through 4 for binary distributions.
                     33:  *
                     34:  * This software is provided "as is" without express or implied warranty
                     35:  * to the extent permitted by applicable law.
                     36: ]*/
                     37:
                     38:
                     39: #ifndef DEFAULT_TIMESTAMP_FORMAT
                     40: #define DEFAULT_TIMESTAMP_FORMAT "%a %b %d %H:%M:%S %Y" /* asctime() format */
                     41: #endif
                     42:
1.1.1.3 ! ohara      43: /* default format for tic mark labels */
        !            44: #define DEF_FORMAT "% g"
        !            45:
        !            46: /* less than one hundredth of a tic mark */
        !            47: #define SIGNIF (0.01)
        !            48:
1.1       maekawa    49: /*
                     50:  * global variables to hold status of 'set' options
                     51:  *
                     52:  */
                     53:
                     54: typedef struct {
                     55:        char text[MAX_LINE_LEN+1];
                     56:        double xoffset, yoffset;
                     57:        char font[MAX_LINE_LEN+1];
                     58: } label_struct;
                     59:
                     60:
                     61: extern TBOOLEAN                 multiplot;
                     62:
                     63: extern TBOOLEAN                        autoscale_r;
                     64: extern TBOOLEAN                        autoscale_t;
                     65: extern TBOOLEAN                        autoscale_u;
                     66: extern TBOOLEAN                        autoscale_v;
                     67: extern TBOOLEAN                        autoscale_x;
                     68: extern TBOOLEAN                        autoscale_y;
                     69: extern TBOOLEAN                        autoscale_z;
                     70: extern TBOOLEAN                        autoscale_x2;
                     71: extern TBOOLEAN                        autoscale_y2;
                     72: extern TBOOLEAN                        autoscale_lt;
                     73: extern TBOOLEAN                        autoscale_lu;
                     74: extern TBOOLEAN                        autoscale_lv;
                     75: extern TBOOLEAN                        autoscale_lx;
                     76: extern TBOOLEAN                        autoscale_ly;
                     77: extern TBOOLEAN                        autoscale_lz;
                     78: extern double                  boxwidth;
                     79: extern TBOOLEAN                        clip_points;
                     80: extern TBOOLEAN                        clip_lines1;
                     81: extern TBOOLEAN                        clip_lines2;
                     82: extern struct lp_style_type     border_lp;
                     83: extern int                     draw_border;
                     84: #define SOUTH                  1 /* 0th bit */
                     85: #define WEST                   2 /* 1th bit */
                     86: #define NORTH                  4 /* 2th bit */
                     87: #define EAST                   8 /* 3th bit */
                     88: #define border_east            (draw_border & EAST)
                     89: #define border_west            (draw_border & WEST)
                     90: #define border_south           (draw_border & SOUTH)
                     91: #define border_north           (draw_border & NORTH)
                     92: extern TBOOLEAN                        draw_surface;
                     93: extern char                    dummy_var[MAX_NUM_VAR][MAX_ID_LEN+1];
                     94: extern char                    default_font[]; /* Entry font added by DJL */
                     95: extern char                    xformat[];
                     96: extern char                    yformat[];
                     97: extern char                    zformat[];
                     98: extern char                    x2format[];
                     99: extern char                    y2format[];
                    100: /* do these formats look like printf or time ? */
                    101: extern int format_is_numeric[];
                    102:
                    103: extern char                    key_title[];
                    104: extern enum PLOT_STYLE data_style, func_style;
                    105: extern double bar_size;
                    106: extern struct lp_style_type     work_grid, grid_lp, mgrid_lp;
                    107: extern double     polar_grid_angle; /* angle step in polar grid in radians */
                    108: extern int                     key;
                    109: extern struct position key_user_pos; /* user specified position for key */
                    110: extern int                     key_vpos, key_hpos, key_just;
                    111: extern double       key_swidth, key_vert_factor; /* user specified vertical spacing multiplier */
                    112: extern double                   key_width_fix; /* user specified additional (+/-) width of key titles */
                    113: extern TBOOLEAN                        key_reverse;  /* key back to front */
                    114: extern struct lp_style_type    key_box;  /* linetype round box < -2 = none */
                    115: extern TBOOLEAN                        is_log_x, is_log_y, is_log_z;
                    116: extern double                  base_log_x, base_log_y, base_log_z;
                    117:                                /* base, for computing pow(base,x) */
                    118: extern double                  log_base_log_x, log_base_log_y, log_base_log_z;
                    119:                                /* log of base, for computing logbase(base,x) */
                    120: extern TBOOLEAN                        is_log_x2, is_log_y2;
                    121: extern double                  base_log_x2, base_log_y2;
                    122:                                /* base, for computing pow(base,x) */
                    123: extern double                  log_base_log_x2, log_base_log_y2;
                    124:                                /* log of base, for computing logbase(base,x) */
                    125: extern char                    *outstr;
                    126: extern TBOOLEAN                        parametric;
                    127: extern double                  pointsize;
                    128: extern TBOOLEAN                        polar;
                    129: extern TBOOLEAN                        hidden3d;
                    130: extern int                     angles_format;
                    131: extern double                  ang2rad; /* 1 or pi/180 */
                    132: extern int                     mapping3d;
                    133: extern int                     samples;
                    134: extern int                     samples_1;
                    135: extern int                     samples_2;
                    136: extern int                     iso_samples_1;
                    137: extern int                     iso_samples_2;
                    138: extern float                   xsize; /* scale factor for size */
                    139: extern float                    xoffset;
                    140: extern float                    yoffset;
                    141: extern float                   ysize; /* scale factor for size */
                    142: extern float                   zsize; /* scale factor for size */
                    143: extern float                   aspect_ratio; /* 1.0 for square */
                    144: extern float                   surface_rot_z;
                    145: extern float                   surface_rot_x;
                    146: extern float                   surface_scale;
                    147: extern float                   surface_zscale;
                    148: extern char                    term_options[];
                    149:
                    150: extern label_struct title, timelabel;
                    151: extern label_struct xlabel, ylabel, zlabel;
                    152: extern label_struct x2label, y2label;
                    153:
                    154: extern int                     timelabel_rotate;
                    155: extern int                     timelabel_bottom;
                    156: extern char                    timefmt[];
                    157: extern int                     datatype[];
                    158: extern int                     range_flags[];
                    159: extern double                  rmin, rmax;
                    160: extern double                  tmin, tmax, umin, umax, vmin, vmax;
                    161: extern double                  xmin, xmax, ymin, ymax, zmin, zmax;
                    162: extern double                  x2min, x2max, y2min, y2max;
                    163: extern double                  loff, roff, toff, boff;
                    164: extern int                     draw_contour;
                    165: extern TBOOLEAN      label_contours;
                    166: extern char                    contour_format[];
                    167: extern int                     contour_pts;
                    168: extern int                     contour_kind;
                    169: extern int                     contour_order;
                    170: extern int                     contour_levels;
                    171: extern double                  zero; /* zero threshold, not 0! */
                    172: extern int                     levels_kind;
1.1.1.3 ! ohara     173: extern double                  *levels_list;
1.1       maekawa   174:
                    175: extern int                     dgrid3d_row_fineness;
                    176: extern int                     dgrid3d_col_fineness;
                    177: extern int                     dgrid3d_norm_value;
                    178: extern TBOOLEAN                        dgrid3d;
                    179:
                    180: #define ENCODING_DEFAULT       0
                    181: #define ENCODING_ISO_8859_1    1
                    182: #define ENCODING_CP_437                2
                    183: #define ENCODING_CP_850                3   /* JFi */
                    184:
                    185: extern int                     encoding;
                    186: extern char                    *encoding_names[];
                    187:
                    188: /* -3 for no axis, or linetype */
                    189: extern struct lp_style_type xzeroaxis;
                    190: extern struct lp_style_type yzeroaxis;
                    191: extern struct lp_style_type x2zeroaxis;
                    192: extern struct lp_style_type y2zeroaxis;
                    193:
                    194: extern int xtics;
                    195: extern int ytics;
                    196: extern int ztics;
                    197: extern int mxtics;
                    198: extern int mytics;
                    199: extern int mztics;
                    200: extern int x2tics;
                    201: extern int y2tics;
                    202: extern int mx2tics;
                    203: extern int my2tics;
                    204: extern double mxtfreq;
                    205: extern double mytfreq;
                    206: extern double mztfreq;
                    207: extern double mx2tfreq;
                    208: extern double my2tfreq;
                    209: extern TBOOLEAN rotate_xtics;
                    210: extern TBOOLEAN rotate_ytics;
                    211: extern TBOOLEAN rotate_ztics;
                    212: extern TBOOLEAN rotate_x2tics;
                    213: extern TBOOLEAN rotate_y2tics;
                    214:
                    215: extern float ticslevel;
                    216: extern double ticscale; /* scale factor for tic marks (was (0..1])*/
                    217: extern double miniticscale; /* and for minitics */
                    218:
                    219: extern struct ticdef xticdef;
                    220: extern struct ticdef yticdef;
                    221: extern struct ticdef zticdef;
                    222: extern struct ticdef x2ticdef;
                    223: extern struct ticdef y2ticdef;
                    224:
                    225: extern TBOOLEAN                        tic_in;
                    226:
                    227: extern struct text_label *first_label;
                    228: extern struct arrow_def *first_arrow;
                    229: extern struct linestyle_def *first_linestyle;
                    230:
                    231: extern int lmargin, bmargin,rmargin,tmargin; /* plot border in characters */
                    232:
                    233: extern char cur_locale[MAX_ID_LEN+1];
                    234:
                    235: extern char full_month_names[12][32];
                    236: extern char abbrev_month_names[12][8];
                    237:
                    238: extern char full_day_names[7][32];
                    239: extern char abbrev_day_names[7][8];
                    240:
                    241: /* The set and show commands, in setshow.c */
                    242: void set_command __PROTO((void));
                    243: void reset_command __PROTO((void));
                    244: void show_command __PROTO((void));
                    245: /* and some accessible support functions */
                    246: enum PLOT_STYLE get_style __PROTO((void));
                    247: TBOOLEAN load_range __PROTO((int axis, double *a, double *b, int autosc));
                    248: void show_version __PROTO((FILE *fp));
                    249: void show_version_long __PROTO((void));
                    250: char * conv_text __PROTO((char *s, char *t));
                    251: void lp_use_properties __PROTO((struct lp_style_type *lp, int tag, int pointflag ));
                    252:
                    253: /* string representing missing values, ascii datafiles */
                    254: extern char *missing_val;

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>