Represents a 2D graph.
More...
#include <Graph.hpp>
|
typedef std::deque< std::pair< FP, FP > > | Container |
| The type the data points are collected in. More...
|
|
Represents a 2D graph.
Definition at line 19 of file Graph.hpp.
◆ Container
The type the data points are collected in.
Definition at line 22 of file Graph.hpp.
◆ addPoint()
void OpenMPCD::Graph::addPoint |
( |
const FP |
x, |
|
|
const FP |
y |
|
) |
| |
|
inline |
Adds a data point.
- Parameters
-
[in] | x | The x coordinate. |
[in] | y | The y coordinate. |
Definition at line 30 of file Graph.hpp.
◆ getPoints()
const Container& OpenMPCD::Graph::getPoints |
( |
| ) |
const |
|
inline |
Returns the data points.
Definition at line 38 of file Graph.hpp.
◆ save()
void OpenMPCD::Graph::save |
( |
const std::string & |
path, |
|
|
const bool |
prependGnuplotCommands |
|
) |
| const |
Saves the graph data to the given file path.
- Parameters
-
[in] | path | The file path to save to. |
[in] | prependGnuplotCommands | Set to true to prepend gnuplot commands, so that the resulting file can be plotted by calling gnuplot on it. |
Definition at line 8 of file Graph.cpp.
The documentation for this class was generated from the following files: