![]() |
Bsoft 2.1.4
Bernard's software package
|
Header file for postscript output functions. More...
Macros | |
#define | _ps_plot_ |
Functions | |
ofstream * | ps_open_and_init (Bstring filename, Bstring title, int npages, int width, int height) |
Opens and initializes a postscript file. More... | |
ofstream * | ps_open_and_init (Bstring filename, Bplot *plot) |
Opens and initializes a postscript file. More... | |
int | ps_close (ofstream *fps) |
Closes a postscript file. More... | |
int | ps_plot (Bstring filename, Bplot *plot) |
Generates postscript graphs. More... | |
Bplot * | ps_read (Bstring &filename) |
Reads a postscript file with a data table. More... | |
int | ps_graph (ofstream *fps, Bplot *plot, int page_number) |
Generates postscript graphs. More... | |
int | ps_scale (ofstream *fps, double x1, double y1, double x2, double y2, double min, double max, double increment, double tick_length, double tick_angle, int digits, int fontsize, int inverse) |
Generates a scale for a postscript graph. More... | |
Bplot * | plot_curve (unsigned long nrow, double *c0, double *c1, double *c2, double *c3) |
int | ps_define_arrowline (ofstream *fps) |
Generates an arrow and line. More... | |
Header file for postscript output functions.
#define _ps_plot_ |
Bplot * plot_curve | ( | unsigned long | nrow, |
double * | c0, | ||
double * | c1, | ||
double * | c2, | ||
double * | c3 | ||
) |
int ps_close | ( | ofstream * | fps | ) |
Closes a postscript file.
*fps | file handle. |
Closes a file and writes the postscript trailer line.
int ps_define_arrowline | ( | ofstream * | fps | ) |
Generates an arrow and line.
int ps_graph | ( | ofstream * | fps, |
Bplot * | plot, | ||
int | page_number | ||
) |
Generates postscript graphs.
*fps | output postscript file descriptor. |
*plot | plot information. |
page_number | page number (starts at 1). |
Any number of functions of a single independant variable (x) can be plot.
Opens and initializes a postscript file.
&filename | output postscript file name. |
*plot | plot information. |
Opens a file and writes the postscript header line, the creator and creation date lines, and a document data specifier.
Opens and initializes a postscript file.
&filename | output postscript file name. |
&title | title. |
npages | number of pages. |
width | page width. |
height | page height. |
Opens a stream and writes the postscript header line, the creator and creation date lines, and a document data specifier.
Generates postscript graphs.
&filename | output postscript file name. |
*plot | plot information. |
Any number of functions of a single independant variable (x) can be plot.
Reads a postscript file with a data table.
&filename | input postscript file name. |
int ps_scale | ( | ofstream * | fps, |
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | min, | ||
double | max, | ||
double | increment, | ||
double | tick_length, | ||
double | tick_angle, | ||
int | digits, | ||
int | fontsize, | ||
int | inverse | ||
) |
Generates a scale for a postscript graph.
*fps | postscript file descriptor. |
x1 | starting x coordinate. |
y1 | starting y coordinate. |
x2 | ending x coordinate. |
y2 | ending y coordinate. |
min | minimum value. |
max | maximum value. |
increment | value increment. |
tick_length | length of ticks. |
tick_angle | angle of ticks relative to horizontal axis. |
digits | number of decimal digits for labels. |
fontsize | font size for labels. |
inverse | flag for inverse values. |