|
openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
#include <asciiPlotter.hpp>
Public Member Functions | |
| asciiPlotter () | |
| empty constructor More... | |
| asciiPlotter (const unsigned int rows, const unsigned int cols) | |
| void | setSize (const unsigned int rows, const unsigned int cols) |
| set canvas size More... | |
| template<class V > | |
| void | add_graph (const std::vector< V > &func, char c) |
| template<class V > | |
| void | add_graph (const std::vector< V > &x, const std::vector< V > &y, char c) |
| void | print () |
| print the plot on stdout More... | |
| template<class V > | |
| void | set_xrange (const std::vector< V > &x) |
| set x range according to min/max of the given vector More... | |
| template<class V > | |
| void | set_xrange (V min, V max) |
| set x range More... | |
| template<class V > | |
| void | set_yrange (const std::vector< V > &func) |
| set y range according to min/max of the given function More... | |
| template<class V > | |
| void | set_yrange (V min, V max) |
| set y range More... | |
The asciiPlotter class plots vectors of function values using ascii characters on stdout.
Definition at line 84 of file asciiPlotter.hpp.
|
inline |
empty constructor
Definition at line 174 of file asciiPlotter.hpp.
|
inline |
|
inline |
add an additional graph to the plot
x values are autogenerated as [0, func.size()]
| func | vector of function values to draw |
| c | character to use for drawing the function |
Definition at line 213 of file asciiPlotter.hpp.
|
inline |
add an additional graph to the plot
| x | vector with x values of the function to draw |
| y | vector with y values of the function to draw |
| c | character to use for drawing the function |
Definition at line 232 of file asciiPlotter.hpp.
|
inline |
print the plot on stdout
Definition at line 244 of file asciiPlotter.hpp.
|
inline |
set x range according to min/max of the given vector
Definition at line 258 of file asciiPlotter.hpp.
|
inline |
set x range
Definition at line 264 of file asciiPlotter.hpp.
|
inline |
set y range according to min/max of the given function
Definition at line 273 of file asciiPlotter.hpp.
|
inline |
set y range
Definition at line 279 of file asciiPlotter.hpp.
|
inline |
set canvas size
Definition at line 196 of file asciiPlotter.hpp.