Hermes2D  3.0
Hermes::Hermes2D::GnuplotGraph Class Reference
+ Inheritance diagram for Hermes::Hermes2D::GnuplotGraph:

Public Member Functions

 GnuplotGraph (const char *title=nullptr, const char *x_axis_name=nullptr, const char *y_axis_name=nullptr, double lines_width=1.0, const std::string &terminal_str=default_terminal)
 
virtual void save (const char *filename)
 
void set_legend_pos (const char *posspec)
 
- Public Member Functions inherited from Hermes::Hermes2D::Graph
 Graph (const char *title=nullptr, const char *x_axis_name=nullptr, const char *y_axis_name=nullptr)
 
void set_captions (const char *title=nullptr, const char *x_axis_name=nullptr, const char *y_axis_name=nullptr)
 
void set_log_x (bool log=true)
 
void set_log_y (bool log=true)
 
void show_legend (bool show=true)
 
void show_grid (bool show=true)
 
int add_row (const char *name=nullptr, const char *color="k", const char *line="-", const char *marker="")
 
void set_row_style (int row, const char *color="k", const char *line="-", const char *marker="")
 
void add_values (int row, double x, double y)
 
void add_values (double x, double y)
 
void add_values (int row, int n, double *x, double *y)
 
void add_values (int row, int n, double2 *xy)
 
void save_numbered (const char *filename, int number)
 

Protected Attributes

std::string legend_pos
 
std::string terminal_str
 
double lw
 
- Protected Attributes inherited from Hermes::Hermes2D::Graph
std::string title
 
std::string xname
 
std::string yname
 
bool logx
 
bool logy
 
bool legend
 
bool grid
 
std::vector< Rowrows
 

Detailed Description

Definition at line 106 of file graph.h.

Member Function Documentation

void Hermes::Hermes2D::GnuplotGraph::set_legend_pos ( const char *  posspec)

Set legend position (see documentation to gnuplot for possible strings). When a non-empty string is used, "legend" is automatically set to true.

Todo:
check that input string is admissible for gnuplot 'set key' command

Definition at line 268 of file graph.cpp.

Member Data Documentation

std::string Hermes::Hermes2D::GnuplotGraph::legend_pos
protected

Legend position. Initially empty (may be changed by calling "set_legend_pos") – "legend == true" with empty "legend_pos" means that the default gnuplot setting will be used.

Definition at line 129 of file graph.h.

Referenced by set_legend_pos().

double Hermes::Hermes2D::GnuplotGraph::lw
protected

Line width. Specifies relative width of plot lines.

Definition at line 137 of file graph.h.

std::string Hermes::Hermes2D::GnuplotGraph::terminal_str
protected

Terminal string. Specifies GnuPlot output type.

Definition at line 133 of file graph.h.


The documentation for this class was generated from the following files: