Bsoft  2.1.0
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 int ps_define_arrowline(ofstream* fps);
30 
31 #define _ps_plot_
32 #endif
Bplot.h
Header file for postscript output functions.
ps_plot
int ps_plot(Bstring filename, Bplot *plot)
Generates postscript graphs.
Definition: ps_plot.cpp:129
Bstring
Definition: Bstring.h:29
ps_define_arrowline
int ps_define_arrowline(ofstream *fps)
Generates an arrow and line.
Definition: ps_plot.cpp:602
Bplot
Definition: Bplot.h:146
ps_close
int ps_close(ofstream *fps)
Closes a postscript file.
Definition: ps_plot.cpp:105
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:32
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:488
ps_graph
int ps_graph(ofstream *fps, Bplot *plot, int page_number)
Generates postscript graphs.
Definition: ps_plot.cpp:247
ps_read
Bplot * ps_read(Bstring &filename)
Reads a postscript file with a data table.
Definition: ps_plot.cpp:149
utilities.h
Header file for general utilities.
plot_curve
Bplot * plot_curve(unsigned long nrow, double *c0, double *c1, double *c2, double *c3)