Public Member Functions | Private Attributes | List of all members
Plot_file Class Reference

Creates a graphic from a data file. More...

#include <gnugraph.h>

Inheritance diagram for Plot_file:
Inheritance graph
[legend]

Public Member Functions

short graph (const std::string &title_graph, const std::string &label, const short x, const short y, const short x_start, const short y_start, const short y_end)
 Creates a graphic. More...
 
 Plot_file (const std::string &filename)
 Constructor. More...
 
- Public Member Functions inherited from IO_matrix_file
 IO_matrix_file (const std::string &filename)
 Constructor. More...
 
short read (std::vector< Matrix > &data)
 
short read (std::vector< Matrix > &data, std::vector< std::string > &title)
 
short read_all (std::vector< Matrix > &data, std::vector< std::string > &data_title)
 Reads all sequences of data. More...
 
short write (const std::vector< Matrix > &data)
 
short write (const std::vector< Matrix > &data, const std::vector< std::string > &title)
 

Private Attributes

std::vector< Matrixdata_from_file
 Data file. More...
 
std::vector< std::string > data_title
 Data file title. More...
 

Additional Inherited Members

- Private Member Functions inherited from Plot2d
void addcommand (const std::string &gcom)
 Add GNUplot command. More...
 
void addcurve (const Matrix &data, const std::string &label="", LineType_en enLineType=DATAPOINTS)
 Add a curve on the graphic. More...
 
void dump (void)
 Method to dump the content of Plot2d to stdout. More...
 
void gnuplot (void)
 Creates a GNUplot graphic. More...
 
 Plot2d (void)
 Constructor. More...
 
void settitle (const std::string &t)
 Set the title. More...
 
void setxlabel (const std::string &t)
 Set the x axis name. More...
 
void setylabel (const std::string &t)
 Set the y axis name. More...
 

Detailed Description

Creates a graphic from a data file.

Definition at line 223 of file gnugraph.h.

Constructor & Destructor Documentation

Plot_file::Plot_file ( const std::string &  filename)

Constructor.

Reads all the data of the file filename.

Definition at line 741 of file gnugraph.cpp.

Member Function Documentation

short Plot_file::graph ( const std::string &  title_graph,
const std::string &  label,
const short  x,
const short  y,
const short  x_start,
const short  y_start,
const short  y_end 
)

Creates a graphic.

Definition at line 753 of file gnugraph.cpp.

Member Data Documentation

std::vector<Matrix> Plot_file::data_from_file
private

Data file.

Definition at line 231 of file gnugraph.h.

std::vector<std::string> Plot_file::data_title
private

Data file title.

Definition at line 232 of file gnugraph.h.


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


kni
Author(s): Martin Günther
autogenerated on Fri Jun 7 2019 22:06:46