#include <Plot.h>
|
| FunctionPlot (std::function< double(const double &)> fun, const char *name="") |
|
void | AddData (const double &start, const double &end, const double &stepSize, const char *name) |
|
| Plot (const std::string &title="") |
|
void | clear_file () |
|
void | title (const std::string &title) |
|
void | xAxis (const std::string &name) |
|
void | yAxis (const std::string &name) |
|
void | pointSize (const int &size) |
|
void | lineWidth (const int &size) |
|
void | AddData (const Matrix< double > &x, const Matrix< double > &y, const std::string &name, DataTypes dataType=DataTypes::NONE, const char *character=nullptr) |
|
void | AddData (const Matrix< double > &mat, const std::string &name, DataTypes dataTypeName=DataTypes::NONE, const char *pointChar=nullptr, int dimensions=2) |
|
virtual void | operator() () const |
|
Wrapper class to easily generate a plot based on a function.
- Examples
- plot/TestPlot.cpp.
◆ FunctionPlot()
FunctionPlot::FunctionPlot |
( |
std::function< double(const double &)> |
fun, |
|
|
const char * |
name = "" |
|
) |
| |
|
inlineexplicit |
default constructor, requires function fun
- Parameters
-
fun | function to plot |
name | plot title |
◆ AddData()
void FunctionPlot::AddData |
( |
const double & |
start, |
|
|
const double & |
end, |
|
|
const double & |
stepSize, |
|
|
const char * |
name |
|
) |
| |
|
inline |
Adds data to the plot context
- Parameters
-
start | starting value |
end | end value |
stepSize | desired step size |
name | data set name |
- Examples
- plot/TestPlot.cpp.
◆ Function
std::function<double(const double&)> FunctionPlot::Function |
|
private |
The documentation for this class was generated from the following file:
- include/math/visualization/Plot.h