|
FML
|
Make plots with matplotlib from within C++. More...
Data Structures | |
| class | Plot |
| struct | select_npy_type |
| struct | select_npy_type< bool > |
| struct | select_npy_type< double > |
| struct | select_npy_type< float > |
| struct | select_npy_type< int16_t > |
| struct | select_npy_type< int32_t > |
| struct | select_npy_type< int64_t > |
| struct | select_npy_type< int8_t > |
| struct | select_npy_type< uint16_t > |
| struct | select_npy_type< uint32_t > |
| struct | select_npy_type< uint64_t > |
| struct | select_npy_type< uint8_t > |
Functions | |
| void | backend (const std::string &name) |
| bool | annotate (std::string annotation, double x, double y) |
| template<typename Numeric > | |
| PyObject * | get_array (const std::vector< Numeric > &v) |
| template<typename Numeric > | |
| PyObject * | get_2darray (const std::vector<::std::vector< Numeric > > &v) |
| template<typename Numeric > | |
| bool | plot (const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords) |
| template<typename Numeric > | |
| void | plot_surface (const std::vector<::std::vector< Numeric > > &x, const std::vector<::std::vector< Numeric > > &y, const std::vector<::std::vector< Numeric > > &z, const std::map< std::string, std::string > &keywords=std::map< std::string, std::string >()) |
| template<typename Numeric > | |
| bool | stem (const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords) |
| template<typename Numeric > | |
| bool | fill (const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords) |
| template<typename Numeric > | |
| bool | fill_between (const std::vector< Numeric > &x, const std::vector< Numeric > &y1, const std::vector< Numeric > &y2, const std::map< std::string, std::string > &keywords) |
| template<typename Numeric > | |
| bool | hist (const std::vector< Numeric > &y, long bins=10, std::string color="b", double alpha=1.0, bool cumulative=false) |
| void | imshow (const unsigned char *ptr, const int rows, const int columns, const int colors, const std::map< std::string, std::string > &keywords={}) |
| void | imshow (const float *ptr, const int rows, const int columns, const int colors, const std::map< std::string, std::string > &keywords={}) |
| void | imshow (const cv::Mat &image, const std::map< std::string, std::string > &keywords={}) |
| template<typename NumericX , typename NumericY > | |
| bool | scatter (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const double s=1.0, const std::unordered_map< std::string, std::string > &keywords={}) |
| template<typename Numeric > | |
| bool | bar (const std::vector< Numeric > &x, const std::vector< Numeric > &y, std::string ec="black", std::string ls="-", double lw=1.0, const std::map< std::string, std::string > &keywords={}) |
| template<typename Numeric > | |
| bool | bar (const std::vector< Numeric > &y, std::string ec="black", std::string ls="-", double lw=1.0, const std::map< std::string, std::string > &keywords={}) |
| bool | subplots_adjust (const std::map< std::string, double > &keywords={}) |
| template<typename Numeric > | |
| bool | named_hist (std::string label, const std::vector< Numeric > &y, long bins=10, std::string color="b", double alpha=1.0) |
| template<typename NumericX , typename NumericY > | |
| bool | plot (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="") |
| template<typename NumericX , typename NumericY , typename NumericU , typename NumericW > | |
| bool | quiver (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::vector< NumericU > &u, const std::vector< NumericW > &w, const std::map< std::string, std::string > &keywords={}) |
| template<typename NumericX , typename NumericY > | |
| bool | stem (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="") |
| template<typename NumericX , typename NumericY > | |
| bool | semilogx (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="") |
| template<typename NumericX , typename NumericY > | |
| bool | semilogy (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="") |
| template<typename NumericX , typename NumericY > | |
| bool | loglog (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="") |
| template<typename NumericX , typename NumericY > | |
| bool | errorbar (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::vector< NumericX > &yerr, const std::map< std::string, std::string > &keywords={}) |
| template<typename Numeric > | |
| bool | named_plot (const std::string &name, const std::vector< Numeric > &y, const std::string &format="") |
| template<typename Numeric > | |
| bool | named_plot (const std::string &name, const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::string &format="") |
| template<typename Numeric > | |
| bool | named_semilogx (const std::string &name, const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::string &format="") |
| template<typename Numeric > | |
| bool | named_semilogy (const std::string &name, const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::string &format="") |
| template<typename Numeric > | |
| bool | named_loglog (const std::string &name, const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::string &format="") |
| template<typename Numeric > | |
| bool | plot (const std::vector< Numeric > &y, const std::string &format="") |
| template<typename Numeric > | |
| bool | plot (const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords) |
| template<typename Numeric > | |
| bool | stem (const std::vector< Numeric > &y, const std::string &format="") |
| template<typename Numeric > | |
| void | text (Numeric x, Numeric y, const std::string &s="") |
| long | figure (long number=-1) |
| bool | fignum_exists (long number) |
| void | figure_size (size_t w, size_t h) |
| void | legend () |
| template<typename Numeric > | |
| void | ylim (Numeric left, Numeric right) |
| template<typename Numeric > | |
| void | xlim (Numeric left, Numeric right) |
| double * | xlim () |
| double * | ylim () |
| template<typename Numeric > | |
| void | xticks (const std::vector< Numeric > &ticks, const std::vector< std::string > &labels={}, const std::map< std::string, std::string > &keywords={}) |
| template<typename Numeric > | |
| void | xticks (const std::vector< Numeric > &ticks, const std::map< std::string, std::string > &keywords) |
| template<typename Numeric > | |
| void | yticks (const std::vector< Numeric > &ticks, const std::vector< std::string > &labels={}, const std::map< std::string, std::string > &keywords={}) |
| template<typename Numeric > | |
| void | yticks (const std::vector< Numeric > &ticks, const std::map< std::string, std::string > &keywords) |
| void | tick_params (const std::map< std::string, std::string > &keywords, const std::string axis="both") |
| void | subplot (long nrows, long ncols, long plot_number) |
| void | subplot2grid (long nrows, long ncols, long rowid=0, long colid=0, long rowspan=1, long colspan=1) |
| void | title (const std::string &titlestr, const std::map< std::string, std::string > &keywords={}) |
| void | suptitle (const std::string &suptitlestr, const std::map< std::string, std::string > &keywords={}) |
| void | axis (const std::string &axisstr) |
| void | xscale (const std::string &xscale) |
| void | yscale (const std::string &yscale) |
| void | xlabel (const std::string &str, const std::map< std::string, std::string > &keywords={}) |
| void | ylabel (const std::string &str, const std::map< std::string, std::string > &keywords={}) |
| void | grid (bool flag) |
| void | show (const bool block=true) |
| void | close () |
| void | xkcd () |
| void | draw () |
| template<typename Numeric > | |
| void | pause (Numeric interval) |
| void | save (const std::string &filename) |
| void | clf () |
| void | ion () |
| std::vector< std::array< double, 2 > > | ginput (const int numClicks=1, const std::map< std::string, std::string > &keywords={}) |
| void | tight_layout () |
| template<typename... Args> | |
| bool | plot () |
| template<typename A , typename B , typename... Args> | |
| bool | plot (const A &a, const B &b, const std::string &format, Args... args) |
| bool | plot (const std::vector< double > &x, const std::vector< double > &y, const std::string &format="") |
| bool | plot (const std::vector< double > &y, const std::string &format="") |
| bool | plot (const std::vector< double > &x, const std::vector< double > &y, const std::map< std::string, std::string > &keywords) |
Make plots with matplotlib from within C++.
|
inline |
Definition at line 274 of file Matplotlibcpp.h.
|
inline |
Definition at line 1614 of file Matplotlibcpp.h.
|
inline |
Definition at line 272 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::bar | ( | const std::vector< Numeric > & | x, |
| const std::vector< Numeric > & | y, | ||
| std::string | ec = "black", | ||
| std::string | ls = "-", | ||
| double | lw = 1.0, | ||
| const std::map< std::string, std::string > & | keywords = {} ) |
Definition at line 784 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::bar | ( | const std::vector< Numeric > & | y, |
| std::string | ec = "black", | ||
| std::string | ls = "-", | ||
| double | lw = 1.0, | ||
| const std::map< std::string, std::string > & | keywords = {} ) |
Definition at line 819 of file Matplotlibcpp.h.
|
inline |
Definition at line 1798 of file Matplotlibcpp.h.
|
inline |
Definition at line 1732 of file Matplotlibcpp.h.
|
inline |
Definition at line 1759 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::errorbar | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const std::vector< NumericX > & | yerr, | ||
| const std::map< std::string, std::string > & | keywords = {} ) |
Definition at line 1035 of file Matplotlibcpp.h.
|
inline |
Definition at line 1285 of file Matplotlibcpp.h.
|
inline |
Definition at line 1254 of file Matplotlibcpp.h.
|
inline |
Definition at line 1302 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::fill | ( | const std::vector< Numeric > & | x, |
| const std::vector< Numeric > & | y, | ||
| const std::map< std::string, std::string > & | keywords ) |
Definition at line 574 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::fill_between | ( | const std::vector< Numeric > & | x, |
| const std::vector< Numeric > & | y1, | ||
| const std::vector< Numeric > & | y2, | ||
| const std::map< std::string, std::string > & | keywords ) |
Definition at line 606 of file Matplotlibcpp.h.
| PyObject * FML::UTILS::Matplotlib::get_2darray | ( | const std::vector<::std::vector< Numeric > > & | v | ) |
Definition at line 369 of file Matplotlibcpp.h.
| PyObject * FML::UTILS::Matplotlib::get_array | ( | const std::vector< Numeric > & | v | ) |
Definition at line 351 of file Matplotlibcpp.h.
|
inline |
Definition at line 1818 of file Matplotlibcpp.h.
|
inline |
Definition at line 1696 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::hist | ( | const std::vector< Numeric > & | y, |
| long | bins = 10, | ||
| std::string | color = "b", | ||
| double | alpha = 1.0, | ||
| bool | cumulative = false ) |
Definition at line 643 of file Matplotlibcpp.h.
| void FML::UTILS::Matplotlib::imshow | ( | const cv::Mat & | image, |
| const std::map< std::string, std::string > & | keywords = {} ) |
Definition at line 722 of file Matplotlibcpp.h.
|
inline |
Definition at line 713 of file Matplotlibcpp.h.
|
inline |
Definition at line 705 of file Matplotlibcpp.h.
|
inline |
Definition at line 1808 of file Matplotlibcpp.h.
|
inline |
Definition at line 1326 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::loglog | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const std::string & | s = "" ) |
Definition at line 1012 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::named_hist | ( | std::string | label, |
| const std::vector< Numeric > & | y, | ||
| long | bins = 10, | ||
| std::string | color = "b", | ||
| double | alpha = 1.0 ) |
Definition at line 855 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::named_loglog | ( | const std::string & | name, |
| const std::vector< Numeric > & | x, | ||
| const std::vector< Numeric > & | y, | ||
| const std::string & | format = "" ) |
Definition at line 1187 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::named_plot | ( | const std::string & | name, |
| const std::vector< Numeric > & | x, | ||
| const std::vector< Numeric > & | y, | ||
| const std::string & | format = "" ) |
Definition at line 1098 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::named_plot | ( | const std::string & | name, |
| const std::vector< Numeric > & | y, | ||
| const std::string & | format = "" ) |
Definition at line 1073 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::named_semilogx | ( | const std::string & | name, |
| const std::vector< Numeric > & | x, | ||
| const std::vector< Numeric > & | y, | ||
| const std::string & | format = "" ) |
Definition at line 1127 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::named_semilogy | ( | const std::string & | name, |
| const std::vector< Numeric > & | x, | ||
| const std::vector< Numeric > & | y, | ||
| const std::string & | format = "" ) |
Definition at line 1157 of file Matplotlibcpp.h.
|
inline |
Definition at line 1770 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::plot | ( | ) |
Definition at line 1971 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::plot | ( | const A & | a, |
| const B & | b, | ||
| const std::string & | format, | ||
| Args... | args ) |
Definition at line 1976 of file Matplotlibcpp.h.
|
inline |
Definition at line 1993 of file Matplotlibcpp.h.
|
inline |
Definition at line 1985 of file Matplotlibcpp.h.
|
inline |
Definition at line 1989 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::plot | ( | const std::vector< Numeric > & | x, |
| const std::vector< Numeric > & | y, | ||
| const std::map< std::string, std::string > & | keywords ) |
Definition at line 407 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::plot | ( | const std::vector< Numeric > & | y, |
| const std::map< std::string, std::string > & | keywords ) |
Definition at line 1223 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::plot | ( | const std::vector< Numeric > & | y, |
| const std::string & | format = "" ) |
Definition at line 1215 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::plot | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const std::string & | s = "" ) |
Definition at line 882 of file Matplotlibcpp.h.
| void FML::UTILS::Matplotlib::plot_surface | ( | const std::vector<::std::vector< Numeric > > & | x, |
| const std::vector<::std::vector< Numeric > > & | y, | ||
| const std::vector<::std::vector< Numeric > > & | z, | ||
| const std::map< std::string, std::string > & | keywords = std::map<std::string, std::string>() ) |
Definition at line 443 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::quiver | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const std::vector< NumericU > & | u, | ||
| const std::vector< NumericW > & | w, | ||
| const std::map< std::string, std::string > & | keywords = {} ) |
Definition at line 905 of file Matplotlibcpp.h.
|
inline |
Definition at line 1783 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::scatter | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const double | s = 1.0, | ||
| const std::unordered_map< std::string, std::string > & | keywords = {} ) |
Definition at line 753 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::semilogx | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const std::string & | s = "" ) |
Definition at line 965 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::semilogy | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const std::string & | s = "" ) |
Definition at line 989 of file Matplotlibcpp.h.
|
inline |
Definition at line 1712 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::stem | ( | const std::vector< Numeric > & | x, |
| const std::vector< Numeric > & | y, | ||
| const std::map< std::string, std::string > & | keywords ) |
Definition at line 542 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::stem | ( | const std::vector< Numeric > & | y, |
| const std::string & | format = "" ) |
Definition at line 1231 of file Matplotlibcpp.h.
| bool FML::UTILS::Matplotlib::stem | ( | const std::vector< NumericX > & | x, |
| const std::vector< NumericY > & | y, | ||
| const std::string & | s = "" ) |
Definition at line 941 of file Matplotlibcpp.h.
|
inline |
Definition at line 1530 of file Matplotlibcpp.h.
|
inline |
Definition at line 1547 of file Matplotlibcpp.h.
|
inline |
Definition at line 834 of file Matplotlibcpp.h.
|
inline |
Definition at line 1593 of file Matplotlibcpp.h.
| void FML::UTILS::Matplotlib::text | ( | Numeric | x, |
| Numeric | y, | ||
| const std::string & | s = "" ) |
Definition at line 1239 of file Matplotlibcpp.h.
|
inline |
Definition at line 1505 of file Matplotlibcpp.h.
|
inline |
Definition at line 1854 of file Matplotlibcpp.h.
|
inline |
Definition at line 1573 of file Matplotlibcpp.h.
|
inline |
Definition at line 1742 of file Matplotlibcpp.h.
|
inline |
Definition at line 1656 of file Matplotlibcpp.h.
|
inline |
Definition at line 1371 of file Matplotlibcpp.h.
| void FML::UTILS::Matplotlib::xlim | ( | Numeric | left, |
| Numeric | right ) |
Definition at line 1354 of file Matplotlibcpp.h.
|
inline |
Definition at line 1628 of file Matplotlibcpp.h.
|
inline |
Definition at line 1451 of file Matplotlibcpp.h.
|
inline |
Definition at line 1408 of file Matplotlibcpp.h.
|
inline |
Definition at line 1676 of file Matplotlibcpp.h.
|
inline |
Definition at line 1389 of file Matplotlibcpp.h.
| void FML::UTILS::Matplotlib::ylim | ( | Numeric | left, |
| Numeric | right ) |
Definition at line 1336 of file Matplotlibcpp.h.
|
inline |
Definition at line 1642 of file Matplotlibcpp.h.
|
inline |
Definition at line 1500 of file Matplotlibcpp.h.
|
inline |
Definition at line 1457 of file Matplotlibcpp.h.