- 3.0.2 core module.
|
Functions | |
bool | ion () |
Enable interactive mode. More... | |
bool | figure (std::string i="") |
Create a new figure. More... | |
bool | hist (const Eigen::Ref< const Eigen::VectorXd > &x, const double bins=10, const std::string histtype="bar") |
Histogram. More... | |
bool | boxplot (const Eigen::Ref< const Eigen::MatrixXd > &x, const std::vector< std::string > &labels) |
Every row of X is the data for a box. More... | |
bool | boxplot (const Eigen::Ref< const Eigen::MatrixXd > &x, std::initializer_list< const std::string > labels) |
bool | boxplot (const Eigen::Ref< const Eigen::MatrixXd > &x) |
bool | subplot (const size_t nrows, const size_t ncols, const size_t plot_number) |
Create a subplot. More... | |
bool | plot (const Eigen::Ref< const Eigen::MatrixXd > &x, const Eigen::Ref< const Eigen::MatrixXd > &y, const std::map< std::string, std::string > &keywords) |
Create an x/y plot with properties as map. More... | |
bool | plot (const Eigen::Ref< const Eigen::MatrixXd > &x, const Eigen::Ref< const Eigen::MatrixXd > &y, const std::string &s="") |
Create an x/y plot with properties in string. More... | |
bool | labelPlot (const std::string &name, const Eigen::Ref< const Eigen::MatrixXd > &x, const Eigen::Ref< const Eigen::MatrixXd > &y, const std::string &format="") |
Create an x/y plot with name as label. More... | |
bool | labelPlot (const std::string &name, const Eigen::Ref< const Eigen::MatrixXd > &y, const std::string &format="") |
bool | plot (const Eigen::Ref< const Eigen::MatrixXd > &x, const std::string &format="") |
void | warn () |
std::vector wrappers. | |
template<typename ALLOC > | |
bool | plot (const std::vector< double, ALLOC > &y, const std::string &format="") |
template<typename ALLOC , typename ALLOC2 > | |
bool | plot (const std::vector< double, ALLOC > &x, const std::vector< double, ALLOC2 > &y, const std::map< std::string, std::string > &keywords) |
bool | plot (const std::vector< double > &x, const Eigen::Ref< const Eigen::MatrixXd > &y, const std::map< std::string, std::string > &keywords) |
template<typename ALLOC , typename ALLOC2 > | |
bool | plot (const std::vector< double, ALLOC > &x, const std::vector< double, ALLOC2 > &y, const std::string &s="") |
bool | plot (const std::vector< double > &x, const Eigen::Ref< const Eigen::MatrixXd > &y, const std::string &s="") |
bool | labelPlot (const std::string &name, const std::vector< double > &x, const std::vector< double > &y, const std::string &format="") |
bool | labelPlot (const std::string &name, const std::vector< double > &x, const Eigen::Ref< const Eigen::MatrixXd > &y, const std::string &format="") |
Plot settings. | |
void | legend () |
void | ylim (double min, double max) |
void | xlim (double xmin, double xmax) |
void | title (const std::string &titlestr) |
void | axis (const std::string &axisstr) |
void | xlabel (const std::string &str) |
void | ylabel (const std::string &str) |
void | grid (bool flag) |
void | show (bool block=true) |
void | save (const std::string &filename) |
bool ct::core::plot::ion | ( | ) |
bool ct::core::plot::figure | ( | std::string | i = "" | ) |
bool ct::core::plot::hist | ( | const Eigen::Ref< const Eigen::VectorXd > & | x, |
const double | bins = 10 , |
||
const std::string | histtype = "bar" |
||
) |
bool ct::core::plot::boxplot | ( | const Eigen::Ref< const Eigen::MatrixXd > & | x, |
const std::vector< std::string > & | labels | ||
) |
bool ct::core::plot::boxplot | ( | const Eigen::Ref< const Eigen::MatrixXd > & | x, |
std::initializer_list< const std::string > | labels | ||
) |
References warn().
bool ct::core::plot::boxplot | ( | const Eigen::Ref< const Eigen::MatrixXd > & | x | ) |
References warn().
bool ct::core::plot::subplot | ( | const size_t | nrows, |
const size_t | ncols, | ||
const size_t | plot_number | ||
) |
bool ct::core::plot::plot | ( | const Eigen::Ref< const Eigen::MatrixXd > & | x, |
const Eigen::Ref< const Eigen::MatrixXd > & | y, | ||
const std::map< std::string, std::string > & | keywords | ||
) |
Create an x/y plot with properties as map.
References warn().
Referenced by main(), and plotResults().
bool ct::core::plot::plot | ( | const Eigen::Ref< const Eigen::MatrixXd > & | x, |
const Eigen::Ref< const Eigen::MatrixXd > & | y, | ||
const std::string & | s = "" |
||
) |
Create an x/y plot with properties in string.
References warn().
bool ct::core::plot::labelPlot | ( | const std::string & | name, |
const Eigen::Ref< const Eigen::MatrixXd > & | x, | ||
const Eigen::Ref< const Eigen::MatrixXd > & | y, | ||
const std::string & | format = "" |
||
) |
bool ct::core::plot::labelPlot | ( | const std::string & | name, |
const Eigen::Ref< const Eigen::MatrixXd > & | y, | ||
const std::string & | format = "" |
||
) |
References warn().
bool ct::core::plot::plot | ( | const Eigen::Ref< const Eigen::MatrixXd > & | x, |
const std::string & | format = "" |
||
) |
References warn().
bool ct::core::plot::plot | ( | const std::vector< double, ALLOC > & | y, |
const std::string & | format = "" |
||
) |
bool ct::core::plot::plot | ( | const std::vector< double, ALLOC > & | x, |
const std::vector< double, ALLOC2 > & | y, | ||
const std::map< std::string, std::string > & | keywords | ||
) |
bool ct::core::plot::plot | ( | const std::vector< double > & | x, |
const Eigen::Ref< const Eigen::MatrixXd > & | y, | ||
const std::map< std::string, std::string > & | keywords | ||
) |
References warn().
bool ct::core::plot::plot | ( | const std::vector< double, ALLOC > & | x, |
const std::vector< double, ALLOC2 > & | y, | ||
const std::string & | s = "" |
||
) |
bool ct::core::plot::plot | ( | const std::vector< double > & | x, |
const Eigen::Ref< const Eigen::MatrixXd > & | y, | ||
const std::string & | s = "" |
||
) |
References warn().
bool ct::core::plot::labelPlot | ( | const std::string & | name, |
const std::vector< double > & | x, | ||
const std::vector< double > & | y, | ||
const std::string & | format = "" |
||
) |
References warn().
bool ct::core::plot::labelPlot | ( | const std::string & | name, |
const std::vector< double > & | x, | ||
const Eigen::Ref< const Eigen::MatrixXd > & | y, | ||
const std::string & | format = "" |
||
) |
References warn().
void ct::core::plot::legend | ( | ) |
References warn().
void ct::core::plot::ylim | ( | double | min, |
double | max | ||
) |
References warn().
void ct::core::plot::xlim | ( | double | xmin, |
double | xmax | ||
) |
References warn().
void ct::core::plot::title | ( | const std::string & | titlestr | ) |
References warn().
Referenced by plotResults().
void ct::core::plot::axis | ( | const std::string & | axisstr | ) |
References warn().
void ct::core::plot::xlabel | ( | const std::string & | str | ) |
References warn().
void ct::core::plot::ylabel | ( | const std::string & | str | ) |
References warn().
void ct::core::plot::grid | ( | bool | flag | ) |
References warn().
void ct::core::plot::show | ( | bool | block = true | ) |
References warn().
Referenced by main(), plotResults(), and TEST().
void ct::core::plot::save | ( | const std::string & | filename | ) |
References warn().