#include <plotter.hpp>
Inheritance diagram for Plotter:
Public Member Functions | |
void | set_size (size_t width, size_t height) |
Set size of plot. | |
void | set_font_size (size_t size) |
Set font size for plot. | |
void | set_ranges (double xmin, double ymin, double xmax, double ymax) |
Set ranges of plot in x- and y-directions. | |
void | plot_png (const std::string &filename) |
Make a plot to a PNG-file. | |
void | plot_eps (const std::string &filename) |
Make a plot to a EPS-file. | |
void | plot_pdf (const std::string &filename) |
Make a plot to a PDF-file. | |
void | plot_svg (const std::string &filename) |
Make a plot to a SVG-file. | |
Protected Member Functions | |
Plotter () | |
Constructor for plotter. | |
virtual | ~Plotter () |
Destructor for plotter. | |
Protected Attributes | |
Frame | _frame |
Plotter skeleton for building plots non-interactively.
Plotter::Plotter | ( | ) | [protected] |
Constructor for plotter.
Not intended to be used on its own.
virtual Plotter::~Plotter | ( | ) | [protected, virtual] |
Destructor for plotter.
void Plotter::plot_eps | ( | const std::string & | filename | ) |
Make a plot to a EPS-file.
Only defined if cairo supports EPS and CAIRO_HAS_EPS_SURFACE is defined.
void Plotter::plot_pdf | ( | const std::string & | filename | ) |
Make a plot to a PDF-file.
Only defined if cairo supports PDF and CAIRO_HAS_PDF_SURFACE is defined.
void Plotter::plot_png | ( | const std::string & | filename | ) |
Make a plot to a PNG-file.
Only defined if cairo supports PNG and CAIRO_HAS_PNG_FUNCTIONS is defined.
void Plotter::plot_svg | ( | const std::string & | filename | ) |
Make a plot to a SVG-file.
Only defined if cairo supports SVG and CAIRO_HAS_SVG_SURFACE is defined.
void Plotter::set_font_size | ( | size_t | size | ) |
Set font size for plot.
void Plotter::set_ranges | ( | double | xmin, | |
double | ymin, | |||
double | xmax, | |||
double | ymax | |||
) |
Set ranges of plot in x- and y-directions.
void Plotter::set_size | ( | size_t | width, | |
size_t | height | |||
) | [inline] |
Set size of plot.
Frame Plotter::_frame [protected] |