⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 psplot.h

📁 seismic software,very useful
💻 H
字号:
/* Copyright (c) Colorado School of Mines, 1990./* All rights reserved.                       *//* include file for C function interface to PostScript */#ifndef PSPLOT_H#define PSPLOT_H/* includes */#include <values.h>/* DEFINES *//* values *//* #define FLT_MAX MAXFLOAT *//* PostScript limits */#define PATHLIMIT 1500#define ARRAYLIMIT 65535#define STRINGLIMIT 65535/* axes drawing */#define NONE 0#define DOT 1#define DASH 2#define SOLID 3#define NORMAL 0#define SEISMIC 1/* mark types */#define NMARKS 9#define MPLUS 0#define MASTERISK 1#define MCROSS 2#define MTRIANGLE 3#define MSQUARE 4#define MCIRCLE 5#define MFILLEDTRIANGLE 6#define MFILLEDSQUARE 7#define MFILLEDCIRCLE 8/* FUNCTION PROTOTYPES */#ifdef __cplusplus  /* if C++, specify external C linkage */extern "C" {#endif/* basic PostScript functions */void beginps (void);void endps (void);void begineps (void);void endeps (void);void newpage (const char *label, int ordinal);void boundingbox (int llx, int lly, int urx, int ury);void showpage (void);void gsave (void);void grestore (void);void newpath (void);void closepath (void);void clip();void translate (float tx, float ty);void scale (float sx, float sy);void rotate (float angle);void concat (float m[]);void setgray (float gray);void setlinewidth (float width);void setlinejoin (int code);void setdash (float dash[], int ndash, float offset);void moveto (float x, float y);void rmoveto (float x, float y);void lineto (float x, float y);void rlineto (float x, float y);void arc (float x, float y, float r, float ang1, float ang2);void stroke (void);void fill (void);void show (const char *str);void justshow (float just, const char *str);void image (int w, int h, int bps, float m[], unsigned char *samples);void setfont (const char *fontname, float fontsize);void fontbbox (const char *fontname, float fontsize, float bbox[]);float fontheight (const char *fontname, float fontsize);float fontwidth (const char *fontname, float fontsize);float fontcapheight (const char *fontname, float fontsize);float fontxheight (const char *fontname, float fontsize);float fontdescender (const char *fontname, float fontsize);float fontascender (const char *fontname, float fontsize);void polyline (const float *x, const float *y, int n);void markto (float x, float y, int index, float size);void rectclip (float x, float y, float width, float height);void rectfill (float x, float y, float width, float height);void rectstroke (float x, float y, float width, float height);/* high-level PostScript functions */void psAxesBox(	float x, float y, float width, float height,	float x1Beg, float x1End, float p1Beg, float p1End, 	float d1Num, float f1Num, int n1Tic, int grid1, char *label1,	float x2Beg, float x2End, float p2Beg, float p2End,	float d2Num, float f2Num, int n2Tic, int grid2, char *label2,	char *labelFont, float labelSize,	char *title, char *titleFont, float titleSize,	int style);void psAxesBox3(	float x, float y, float width, float height,	float x1Beg, float x1End, float p1Beg, float p1End, 	float d1Num, float f1Num, int n1Tic, int grid1, char *label1,	float x2Beg, float x2End, float p2Beg, float p2End,	float d2Num, float f2Num, int n2Tic, int grid2, char *label2,	char *labelFont, float labelSize,	char *title, char *titleFont, float titleSize,	int style, char *title2);void psAxesBBox(	float x, float y, float width, float height,	char *labelFont, float labelSize,	char *titleFont, float titleSize,	int style, int bbox[]);void psAxesBBox3(	float x, float y, float width, float height,	char *labelFont, float labelSize,	char *titleFont, float titleSize,	int style, int bbox[]);void psContour (float c, int nx, float x[], int ny, float y[], float z[],	float lcs, float *w);void psWiggle (	int n, float z[], float zmin, float zmax, float zbase,	float yzmin, float yzmax, float xfirst, float xlast, int fill);void psAxes3(	float x,float y,float size1,float size2,float size3,float angle,	float x1Beg, float x1End, float p1Beg, float p1End, 	float d1Num, float f1Num, int n1Tic, int grid1, char *label1,	float x2Beg, float x2End, float p2Beg, float p2End,	float d2Num, float f2Num, int n2Tic, int grid2, char *label2,	float x3Beg, float x3End, float p3Beg, float p3End,	float d3Num, float f3Num, int n3Tic, int grid3, char *label3,	char *labelFont, float labelSize,	char *title, char *titleFont, float titleSize,	float x1cut, float x2cut, float x3cut);void psCubeAxesBox(        float x,float y,float size1,float size2,float size3,float angle,        float x1Beg, float x1End, float p1Beg, float p1End,        float d1Num, float f1Num, int n1Tic, int grid1, char *label1,        float x2Beg, float x2End, float p2Beg, float p2End,        float d2Num, float f2Num, int n2Tic, int grid2, char *label2,        float x3Beg, float x3End, float p3Beg, float p3End,        float d3Num, float f3Num, int n3Tic, int grid3, char *label3,        char *labelFont, float labelSize,        char *title, char *titleFont, float titleSize);void cubesize(float hf, float ht, float wf, float ws, 	      float *vsize, float *hsize, 	      int n1f, int n1t, int n2f, int n2s, 	      int *n1total, int *n2total);void wside(float wb, float *wa, float d2, float angle, int *n2a);void sidestretch(float *sideb, float *sidea, int n2b, int n2a, int n1);void htop(float hb, float *ha, float d1, float angle, int *n1a);void topstretch(float *topb, float *topa, int n1b, int n1a, int n2);void cubemap(int n1front, int n2front, 	     int n1side, int n2side,             int n1top, int n2top, 	     float d1cu, float d2cu,	     float front[], float side[],	     float top[], float cube[], float angle);void cubeimage(int n1, int n2, int n3, float size1, float size2, float size3, 	       float angle, float *front, float *side, float *top, 	       float *cube);/* dump data to psgraph */void dump2psgraph(float *d, int *n, int m, char *title,                char *label1, char *label2, char *style);#ifdef __cplusplus  /* if C++ (external C linkage is being specified) */}#endif#endif /* PSPLOT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -