| Bsoft 2.0.5 Bernard's software package

ps_plot.h
Go to the documentation of this file.
1
9 #ifndef _ps_plot_
10
11 #include "Bplot.h"
12 #include "utilities.h"
13 #include <fstream>
14
15
16 // Function prototypes
17 ofstream* ps_open_and_init(Bstring filename, Bstring title, int npages,
18 int width, int height);
19 ofstream* ps_open_and_init(Bstring filename, Bplot* plot);
20 int ps_close(ofstream* fps);
21 int ps_plot(Bstring filename, Bplot* plot);
22 Bplot* ps_read(Bstring& filename);
23 int ps_graph(ofstream* fps, Bplot* plot, int page_number);
24 int ps_scale(ofstream* fps, double x1, double y1, double x2, double y2,
25 double min, double max, double increment,
26 double tick_length, double tick_angle,
27 int digits, int fontsize, int inverse);
28 Bplot* plot_curve(unsigned long nrow, double* c0, double* c1, double* c2, double* c3);
29
30 #define _ps_plot_
31 #endif
utilities.h
Header file for general utilities.
ps_read
Bplot * ps_read(Bstring &filename)
Reads a postscript file with a data table.
Definition: ps_plot.cpp:148
ps_open_and_init
ofstream * ps_open_and_init(Bstring filename, Bstring title, int npages, int width, int height)
Opens and initializes a postscript file.
Definition: ps_plot.cpp:31
Bplot.h
Header file for postscript output functions.
plot_curve
Bplot * plot_curve(unsigned long nrow, double *c0, double *c1, double *c2, double *c3)
ps_plot
int ps_plot(Bstring filename, Bplot *plot)
Generates postscript graphs.
Definition: ps_plot.cpp:128
Bstring
Definition: Bstring.h:29
ps_graph
int ps_graph(ofstream *fps, Bplot *plot, int page_number)
Generates postscript graphs.
Definition: ps_plot.cpp:246
ps_close
int ps_close(ofstream *fps)
Closes a postscript file.
Definition: ps_plot.cpp:104
ps_scale
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.
Definition: ps_plot.cpp:487
Bplot
Definition: Bplot.h:146