|
| PLOT3_EXPORT void | pl_setOutputMode (int mode) |
| |
| PLOT3_EXPORT void | pl_point (FILE *plotfp, int x, int y) |
| |
| PLOT3_EXPORT void | pl_line (FILE *plotfp, int fx, int fy, int tx, int ty) |
| |
| PLOT3_EXPORT void | pl_linmod (FILE *plotfp, const char *s) |
| |
| PLOT3_EXPORT void | pl_move (FILE *plotfp, int x, int y) |
| |
| PLOT3_EXPORT void | pl_cont (FILE *plotfp, int x, int y) |
| |
| PLOT3_EXPORT void | pl_label (FILE *plotfp, const char *s) |
| |
| PLOT3_EXPORT void | pl_space (FILE *plotfp, int x_1, int y_1, int x_2, int y_2) |
| |
| PLOT3_EXPORT void | pl_erase (FILE *plotfp) |
| |
| PLOT3_EXPORT void | pl_circle (FILE *plotfp, int x, int y, int r) |
| |
| PLOT3_EXPORT void | pl_arc (FILE *plotfp, int xc, int yc, int x_1, int y_1, int x_2, int y_2) |
| |
| PLOT3_EXPORT void | pl_box (FILE *plotfp, int x_1, int y_1, int x_2, int y_2) |
| |
| PLOT3_EXPORT void | pl_color (FILE *plotfp, int r, int g, int b) |
| |
| PLOT3_EXPORT void | pl_color_buc (FILE *plotfp, struct bu_color *c) |
| |
| PLOT3_EXPORT void | pl_flush (FILE *plotfp) |
| |
| PLOT3_EXPORT void | pl_3space (FILE *plotfp, int x_1, int y_1, int z_1, int x_2, int y_2, int z_2) |
| |
| PLOT3_EXPORT void | pl_3point (FILE *plotfp, int x, int y, int z) |
| |
| PLOT3_EXPORT void | pl_3move (FILE *plotfp, int x, int y, int z) |
| |
| PLOT3_EXPORT void | pl_3cont (FILE *plotfp, int x, int y, int z) |
| |
| PLOT3_EXPORT void | pl_3line (FILE *plotfp, int x_1, int y_1, int z_1, int x_2, int y_2, int z_2) |
| |
| PLOT3_EXPORT void | pl_3box (FILE *plotfp, int x_1, int y_1, int z_1, int x_2, int y_2, int z_2) |
| |
| PLOT3_EXPORT void | pd_point (FILE *plotfp, double x, double y) |
| |
| PLOT3_EXPORT void | pd_line (FILE *plotfp, double fx, double fy, double tx, double ty) |
| |
| PLOT3_EXPORT void | pd_move (FILE *plotfp, double x, double y) |
| |
| PLOT3_EXPORT void | pd_cont (FILE *plotfp, double x, double y) |
| |
| PLOT3_EXPORT void | pd_space (FILE *plotfp, double x_1, double y_1, double x_2, double y_2) |
| |
| PLOT3_EXPORT void | pd_circle (FILE *plotfp, double x, double y, double r) |
| |
| PLOT3_EXPORT void | pd_arc (FILE *plotfp, double xc, double yc, double x_1, double y_1, double x_2, double y_2) |
| |
| PLOT3_EXPORT void | pd_box (FILE *plotfp, double x_1, double y_1, double x_2, double y_2) |
| |
| PLOT3_EXPORT void | pd_3space (FILE *plotfp, double x_1, double y_1, double z_1, double x_2, double y_2, double z_2) |
| |
| PLOT3_EXPORT void | pd_3point (FILE *plotfp, double x, double y, double z) |
| |
| PLOT3_EXPORT void | pd_3move (FILE *plotfp, double x, double y, double z) |
| |
| PLOT3_EXPORT void | pd_3cont (FILE *plotfp, double x, double y, double z) |
| |
| PLOT3_EXPORT void | pd_3line (FILE *plotfp, double x_1, double y_1, double z_1, double x_2, double y_2, double z_2) |
| |
| PLOT3_EXPORT void | pd_3box (FILE *plotfp, double x_1, double y_1, double z_1, double x_2, double y_2, double z_2) |
| |
| PLOT3_EXPORT void | pdv_3ray (FILE *fp, const point_t pt, const vect_t dir, double t) |
| |
| PLOT3_EXPORT void | pl_list (FILE *fp, int *x, int *y, int npoints) |
| |
| PLOT3_EXPORT void | pd_list (FILE *fp, double *x, double *y, int npoints) |
| |
| PLOT3_EXPORT void | pd_3list (FILE *fp, double *x, double *y, double *z, int npoints) |
| |
| PLOT3_EXPORT void | pd_marked_list (FILE *fp, double *x, double *y, int npoints, int flag, int mark, int interval, double size) |
| |
| PLOT3_EXPORT void | pd_marker (FILE *fp, int c, double x, double y, double scale) |
| |
| PLOT3_EXPORT void | pd_3marker (FILE *fp, int c, double x, double y, double z, double scale) |
| |
| PLOT3_EXPORT void | plot3_data_scale (int idata[], int elements, int mode, int length, int odata[], double *min, double *dx) |
| |
| PLOT3_EXPORT void | pd_symbol (FILE *fp, char *string, double x, double y, double scale, double theta) |
| |
| PLOT3_EXPORT void | plot3_xy_plot (FILE *fp, int xp, int yp, int xl, int yl, char xtitle[], char ytitle[], float x[], float y[], int n, double cscale) |
| |
| PLOT3_EXPORT void | plot3_float_to_ascii (float x, char *s) |
| |
| PLOT3_EXPORT void | plot3_scale_fit (float *x, int npts, float size, float *xs, float *xmin, float *xmax, float *dx) |
| |
| PLOT3_EXPORT void | plot3_float_split (float x, float *coef, int *ex) |
| |
| PLOT3_EXPORT double | plot3_ipow (double x, int n) |
| |
| PLOT3_EXPORT void | pdv_3axis (FILE *fp, char *string, point_t origin, mat_t rot, double length, int ccw, int ndigits, double label_start, double label_incr, double tick_separation, double char_width) |
| |
| PLOT3_EXPORT void | pdv_3symbol (FILE *fp, char *string, point_t origin, mat_t rot, double scale) |
| |
| PLOT3_EXPORT void | pdv_3vector (FILE *plotfp, point_t from, point_t to, double fromheadfract, double toheadfract) |
| |
| PLOT3_EXPORT int * | plot3_font_getchar (const unsigned char *c) |
| |
| PLOT3_EXPORT int | plot3_invalid (FILE *fp, int mode) |
| |
The basic UNIX-plot routines.
A public-domain UNIX plot library, for 2-D and 3-D plotting in 16-bit VAX signed integer spaces, or 64-bit IEEE floating point.
These routines generate "UNIX plot" output (with the addition of 3-D commands). They behave almost exactly like the regular libplot routines, except:
The 3-D extensions are those of Doug Gwyn, from his System V extensions. Plot3 also incorporates routines from the BRL TIG-PACK (Terminal Independent Plotting Package), originally written in 1978 and 1979 for generating polylines, markers, axes, simple XY plots, vectors, and plotted symbols using the plot3 primitives.
The built-in vector font support descends from the Terminal Independent Graphics Display Package by Mike Muuss, July 31, 1978. The vector font table was provided courtesy of Dr. Bruce Henrikson and Dr. Stephen Wolff, U.S. Army Ballistic Research Laboratory, Summer 1978, based on work for a remote Houston Instruments pen plotter package on the GE Tymeshare system. The basic font resides in a 10x10 unit square; callers scale and transform those stroke lists into plot coordinates.
These are the ascii command letters allocated to various actions. Care has been taken to consistently match lowercase and uppercase letters.
The calling sequence is the same as the original Bell Labs routines, with the exception of the pl_ prefix on the name.
Of interest: the Plan 9 sources (recently MIT licensed) appear to be related to the original code that would have formed the conceptual basis for these routines:
Don't know if there would be any improvements that could be retrofitted onto this version, but might be worth looking. In particular, curious if the spline routine might be useful...