Functions | |
void | draw_xy (const Eigen::VectorXd &x, const Eigen::VectorXd &y) |
Draw a 2D plot with given x and y vectors. More... | |
template<typename FunctionType > | |
void | drawFunction (FunctionType &&f, std::pair< double, double > &&xRange, int eValuationPoints=100) |
Draw the plot of a mathematical function. More... | |
void Ikarus::plot::draw_xy | ( | const Eigen::VectorXd & | x, |
const Eigen::VectorXd & | y | ||
) |
This function uses the Matplot library to create a 2D plot with the provided x and y vectors.
x | Vector representing the x-axis values. |
y | Vector representing the y-axis values. |
void Ikarus::plot::drawFunction | ( | FunctionType && | f, |
std::pair< double, double > && | xRange, | ||
int | eValuationPoints = 100 |
||
) |
This function uses the Matplot library to draw the plot of a mathematical function within the specified x-range.
FunctionType | The type of the mathematical function. |
f | The mathematical function to be plotted. |
xRange | A pair representing the range of x-axis values for plotting. |
eValuationPoints | The number of points to evaluate the function within the given range. |