Namespaces | Classes | Functions
matplotlibcpp Namespace Reference

Namespaces

 detail
 

Classes

class  Plot
 

Functions

bool annotate (std::string annotation, double x, double y)
 
void axis (const std::string &axisstr)
 
void backend (const std::string &name)
 
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={})
 
template<typename NumericX >
bool boxplot (const std::vector< NumericX > &x, const double &position, const double &width, const std::string &color, const std::string &linestyle, const std::map< std::string, std::string > &keywords={}, bool vert=true)
 
void clf ()
 
void close ()
 
void draw ()
 
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={})
 
bool fignum_exists (long number)
 
long figure (long number=-1)
 
void figure_size (size_t w, size_t h)
 
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 >
PyObject * get_array (const std::vector< Numeric > &v)
 
std::vector< std::array< double, 2 > > ginput (const int numClicks=1, const std::map< std::string, std::string > &keywords={})
 
void grid (bool flag)
 
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 ion ()
 
void legend ()
 
template<typename NumericX , typename NumericY >
bool loglog (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
 
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 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 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_plot (const std::string &name, 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 >
void pause (Numeric interval)
 
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::map< std::string, std::string > &keywords)
 
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="")
 
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 >
bool plot (const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords)
 
template<typename Numeric >
bool plot (const std::vector< Numeric > &y, const std::string &format="")
 
template<typename NumericX , typename NumericY >
bool plot (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
 
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 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={})
 
void save (const std::string &filename)
 
template<typename NumericX , typename NumericY >
bool scatter (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const double s=1.0)
 
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="")
 
void show (const bool block=true)
 
template<typename NumericX , typename NumericY >
bool stackplot (const std::vector< NumericX > &x, const std::vector< std::vector< NumericY >> &ys, const std::vector< std::string > &labels, const std::vector< std::string > &colors, const std::string &baseline="zero")
 
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 stem (const std::vector< Numeric > &y, const std::string &format="")
 
template<typename NumericX , typename NumericY >
bool stem (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
 
void subplot (long nrows, long ncols, long plot_number)
 
bool subplots_adjust (const std::map< std::string, double > &keywords={})
 
void suptitle (const std::string &suptitlestr, const std::map< std::string, std::string > &keywords={})
 
template<typename Numeric >
void text (Numeric x, Numeric y, const std::string &s="")
 
void tight_layout ()
 
void title (const std::string &titlestr, const std::map< std::string, std::string > &keywords={})
 
void xkcd ()
 
void xlabel (const std::string &str, const std::map< std::string, std::string > &keywords={})
 
double * xlim ()
 
template<typename Numeric >
void xlim (Numeric left, Numeric right)
 
template<typename Numeric >
void xticks (const std::vector< Numeric > &ticks, const std::map< std::string, std::string > &keywords)
 
template<typename Numeric >
void xticks (const std::vector< Numeric > &ticks, const std::vector< std::string > &labels={}, const std::map< std::string, std::string > &keywords={})
 
void ylabel (const std::string &str, const std::map< std::string, std::string > &keywords={})
 
double * ylim ()
 
template<typename Numeric >
void ylim (Numeric left, Numeric right)
 
template<typename Numeric >
void yticks (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={})
 

Function Documentation

◆ annotate()

bool matplotlibcpp::annotate ( std::string  annotation,
double  x,
double  y 
)
inline

Definition at line 234 of file matplotlibcpp.h.

◆ axis()

void matplotlibcpp::axis ( const std::string &  axisstr)
inline

Definition at line 1451 of file matplotlibcpp.h.

◆ backend()

void matplotlibcpp::backend ( const std::string &  name)
inline

Definition at line 232 of file matplotlibcpp.h.

◆ bar()

template<typename Numeric >
bool matplotlibcpp::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 660 of file matplotlibcpp.h.

◆ boxplot()

template<typename NumericX >
bool matplotlibcpp::boxplot ( const std::vector< NumericX > &  x,
const double &  position,
const double &  width,
const std::string &  color,
const std::string &  linestyle,
const std::map< std::string, std::string > &  keywords = {},
bool  vert = true 
)

Definition at line 788 of file matplotlibcpp.h.

◆ clf()

void matplotlibcpp::clf ( )
inline

Definition at line 1593 of file matplotlibcpp.h.

◆ close()

void matplotlibcpp::close ( )
inline

Definition at line 1534 of file matplotlibcpp.h.

◆ draw()

void matplotlibcpp::draw ( )
inline

Definition at line 1558 of file matplotlibcpp.h.

◆ errorbar()

template<typename NumericX , typename NumericY >
bool matplotlibcpp::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 972 of file matplotlibcpp.h.

◆ fignum_exists()

bool matplotlibcpp::fignum_exists ( long  number)
inline

Definition at line 1193 of file matplotlibcpp.h.

◆ figure()

long matplotlibcpp::figure ( long  number = -1)
inline

Definition at line 1163 of file matplotlibcpp.h.

◆ figure_size()

void matplotlibcpp::figure_size ( size_t  w,
size_t  h 
)
inline

Definition at line 1210 of file matplotlibcpp.h.

◆ fill()

template<typename Numeric >
bool matplotlibcpp::fill ( const std::vector< Numeric > &  x,
const std::vector< Numeric > &  y,
const std::map< std::string, std::string > &  keywords 
)

Definition at line 476 of file matplotlibcpp.h.

◆ fill_between()

template<typename Numeric >
bool matplotlibcpp::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 506 of file matplotlibcpp.h.

◆ get_array()

template<typename Numeric >
PyObject* matplotlibcpp::get_array ( const std::vector< Numeric > &  v)

Definition at line 312 of file matplotlibcpp.h.

◆ ginput()

std::vector<std::array<double, 2> > matplotlibcpp::ginput ( const int  numClicks = 1,
const std::map< std::string, std::string > &  keywords = {} 
)
inline

Definition at line 1611 of file matplotlibcpp.h.

◆ grid()

void matplotlibcpp::grid ( bool  flag)
inline

Definition at line 1502 of file matplotlibcpp.h.

◆ hist()

template<typename Numeric >
bool matplotlibcpp::hist ( const std::vector< Numeric > &  y,
long  bins = 10,
std::string  color = "b",
double  alpha = 1.0,
bool  cumulative = false 
)

Definition at line 539 of file matplotlibcpp.h.

◆ ion()

void matplotlibcpp::ion ( )
inline

Definition at line 1602 of file matplotlibcpp.h.

◆ legend()

void matplotlibcpp::legend ( )
inline

Definition at line 1233 of file matplotlibcpp.h.

◆ loglog()

template<typename NumericX , typename NumericY >
bool matplotlibcpp::loglog ( const std::vector< NumericX > &  x,
const std::vector< NumericY > &  y,
const std::string &  s = "" 
)

Definition at line 949 of file matplotlibcpp.h.

◆ named_hist()

template<typename Numeric >
bool matplotlibcpp::named_hist ( std::string  label,
const std::vector< Numeric > &  y,
long  bins = 10,
std::string  color = "b",
double  alpha = 1.0 
)

Definition at line 710 of file matplotlibcpp.h.

◆ named_loglog()

template<typename Numeric >
bool matplotlibcpp::named_loglog ( const std::string &  name,
const std::vector< Numeric > &  x,
const std::vector< Numeric > &  y,
const std::string &  format = "" 
)

Definition at line 1104 of file matplotlibcpp.h.

◆ named_plot() [1/2]

template<typename Numeric >
bool matplotlibcpp::named_plot ( const std::string &  name,
const std::vector< Numeric > &  x,
const std::vector< Numeric > &  y,
const std::string &  format = "" 
)

Definition at line 1029 of file matplotlibcpp.h.

◆ named_plot() [2/2]

template<typename Numeric >
bool matplotlibcpp::named_plot ( const std::string &  name,
const std::vector< Numeric > &  y,
const std::string &  format = "" 
)

Definition at line 1005 of file matplotlibcpp.h.

◆ named_semilogx()

template<typename Numeric >
bool matplotlibcpp::named_semilogx ( const std::string &  name,
const std::vector< Numeric > &  x,
const std::vector< Numeric > &  y,
const std::string &  format = "" 
)

Definition at line 1054 of file matplotlibcpp.h.

◆ named_semilogy()

template<typename Numeric >
bool matplotlibcpp::named_semilogy ( const std::string &  name,
const std::vector< Numeric > &  x,
const std::vector< Numeric > &  y,
const std::string &  format = "" 
)

Definition at line 1079 of file matplotlibcpp.h.

◆ pause()

template<typename Numeric >
void matplotlibcpp::pause ( Numeric  interval)
inline

Definition at line 1567 of file matplotlibcpp.h.

◆ plot() [1/9]

template<typename... Args>
bool matplotlibcpp::plot ( )

Definition at line 1743 of file matplotlibcpp.h.

◆ plot() [2/9]

template<typename A , typename B , typename... Args>
bool matplotlibcpp::plot ( const A &  a,
const B &  b,
const std::string &  format,
Args...  args 
)

Definition at line 1745 of file matplotlibcpp.h.

◆ plot() [3/9]

bool matplotlibcpp::plot ( const std::vector< double > &  x,
const std::vector< double > &  y,
const std::map< std::string, std::string > &  keywords 
)
inline

Definition at line 1759 of file matplotlibcpp.h.

◆ plot() [4/9]

bool matplotlibcpp::plot ( const std::vector< double > &  x,
const std::vector< double > &  y,
const std::string &  format = "" 
)
inline

Definition at line 1753 of file matplotlibcpp.h.

◆ plot() [5/9]

bool matplotlibcpp::plot ( const std::vector< double > &  y,
const std::string &  format = "" 
)
inline

Definition at line 1757 of file matplotlibcpp.h.

◆ plot() [6/9]

template<typename Numeric >
bool matplotlibcpp::plot ( const std::vector< Numeric > &  x,
const std::vector< Numeric > &  y,
const std::map< std::string, std::string > &  keywords 
)

Definition at line 323 of file matplotlibcpp.h.

◆ plot() [7/9]

template<typename Numeric >
bool matplotlibcpp::plot ( const std::vector< Numeric > &  y,
const std::map< std::string, std::string > &  keywords 
)

Definition at line 1135 of file matplotlibcpp.h.

◆ plot() [8/9]

template<typename Numeric >
bool matplotlibcpp::plot ( const std::vector< Numeric > &  y,
const std::string &  format = "" 
)

Definition at line 1128 of file matplotlibcpp.h.

◆ plot() [9/9]

template<typename NumericX , typename NumericY >
bool matplotlibcpp::plot ( const std::vector< NumericX > &  x,
const std::vector< NumericY > &  y,
const std::string &  s = "" 
)

Definition at line 733 of file matplotlibcpp.h.

◆ plot_surface()

template<typename Numeric >
void matplotlibcpp::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 352 of file matplotlibcpp.h.

◆ quiver()

template<typename NumericX , typename NumericY , typename NumericU , typename NumericW >
bool matplotlibcpp::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 756 of file matplotlibcpp.h.

◆ save()

void matplotlibcpp::save ( const std::string &  filename)
inline

Definition at line 1579 of file matplotlibcpp.h.

◆ scatter()

template<typename NumericX , typename NumericY >
bool matplotlibcpp::scatter ( const std::vector< NumericX > &  x,
const std::vector< NumericY > &  y,
const double  s = 1.0 
)

Definition at line 634 of file matplotlibcpp.h.

◆ semilogx()

template<typename NumericX , typename NumericY >
bool matplotlibcpp::semilogx ( const std::vector< NumericX > &  x,
const std::vector< NumericY > &  y,
const std::string &  s = "" 
)

Definition at line 903 of file matplotlibcpp.h.

◆ semilogy()

template<typename NumericX , typename NumericY >
bool matplotlibcpp::semilogy ( const std::vector< NumericX > &  x,
const std::vector< NumericY > &  y,
const std::string &  s = "" 
)

Definition at line 926 of file matplotlibcpp.h.

◆ show()

void matplotlibcpp::show ( const bool  block = true)
inline

Definition at line 1517 of file matplotlibcpp.h.

◆ stackplot()

template<typename NumericX , typename NumericY >
bool matplotlibcpp::stackplot ( const std::vector< NumericX > &  x,
const std::vector< std::vector< NumericY >> &  ys,
const std::vector< std::string > &  labels,
const std::vector< std::string > &  colors,
const std::string &  baseline = "zero" 
)

Definition at line 835 of file matplotlibcpp.h.

◆ stem() [1/3]

template<typename Numeric >
bool matplotlibcpp::stem ( const std::vector< Numeric > &  x,
const std::vector< Numeric > &  y,
const std::map< std::string, std::string > &  keywords 
)

Definition at line 447 of file matplotlibcpp.h.

◆ stem() [2/3]

template<typename Numeric >
bool matplotlibcpp::stem ( const std::vector< Numeric > &  y,
const std::string &  format = "" 
)

Definition at line 1142 of file matplotlibcpp.h.

◆ stem() [3/3]

template<typename NumericX , typename NumericY >
bool matplotlibcpp::stem ( const std::vector< NumericX > &  x,
const std::vector< NumericY > &  y,
const std::string &  s = "" 
)

Definition at line 880 of file matplotlibcpp.h.

◆ subplot()

void matplotlibcpp::subplot ( long  nrows,
long  ncols,
long  plot_number 
)
inline

Definition at line 1398 of file matplotlibcpp.h.

◆ subplots_adjust()

bool matplotlibcpp::subplots_adjust ( const std::map< std::string, double > &  keywords = {})
inline

Definition at line 690 of file matplotlibcpp.h.

◆ suptitle()

void matplotlibcpp::suptitle ( const std::string &  suptitlestr,
const std::map< std::string, std::string > &  keywords = {} 
)
inline

Definition at line 1432 of file matplotlibcpp.h.

◆ text()

template<typename Numeric >
void matplotlibcpp::text ( Numeric  x,
Numeric  y,
const std::string &  s = "" 
)

Definition at line 1149 of file matplotlibcpp.h.

◆ tight_layout()

void matplotlibcpp::tight_layout ( )
inline

Definition at line 1644 of file matplotlibcpp.h.

◆ title()

void matplotlibcpp::title ( const std::string &  titlestr,
const std::map< std::string, std::string > &  keywords = {} 
)
inline

Definition at line 1413 of file matplotlibcpp.h.

◆ xkcd()

void matplotlibcpp::xkcd ( )
inline

Definition at line 1544 of file matplotlibcpp.h.

◆ xlabel()

void matplotlibcpp::xlabel ( const std::string &  str,
const std::map< std::string, std::string > &  keywords = {} 
)
inline

Definition at line 1464 of file matplotlibcpp.h.

◆ xlim() [1/2]

double* matplotlibcpp::xlim ( )
inline

Definition at line 1274 of file matplotlibcpp.h.

◆ xlim() [2/2]

template<typename Numeric >
void matplotlibcpp::xlim ( Numeric  left,
Numeric  right 
)

Definition at line 1258 of file matplotlibcpp.h.

◆ xticks() [1/2]

template<typename Numeric >
void matplotlibcpp::xticks ( const std::vector< Numeric > &  ticks,
const std::map< std::string, std::string > &  keywords 
)
inline

Definition at line 1349 of file matplotlibcpp.h.

◆ xticks() [2/2]

template<typename Numeric >
void matplotlibcpp::xticks ( const std::vector< Numeric > &  ticks,
const std::vector< std::string > &  labels = {},
const std::map< std::string, std::string > &  keywords = {} 
)
inline

Definition at line 1309 of file matplotlibcpp.h.

◆ ylabel()

void matplotlibcpp::ylabel ( const std::string &  str,
const std::map< std::string, std::string > &  keywords = {} 
)
inline

Definition at line 1483 of file matplotlibcpp.h.

◆ ylim() [1/2]

double* matplotlibcpp::ylim ( )
inline

Definition at line 1291 of file matplotlibcpp.h.

◆ ylim() [2/2]

template<typename Numeric >
void matplotlibcpp::ylim ( Numeric  left,
Numeric  right 
)

Definition at line 1242 of file matplotlibcpp.h.

◆ yticks() [1/2]

template<typename Numeric >
void matplotlibcpp::yticks ( const std::vector< Numeric > &  ticks,
const std::map< std::string, std::string > &  keywords 
)
inline

Definition at line 1394 of file matplotlibcpp.h.

◆ yticks() [2/2]

template<typename Numeric >
void matplotlibcpp::yticks ( const std::vector< Numeric > &  ticks,
const std::vector< std::string > &  labels = {},
const std::map< std::string, std::string > &  keywords = {} 
)
inline

Definition at line 1354 of file matplotlibcpp.h.



ov_core
Author(s): Patrick Geneva , Kevin Eckenhoff , Guoquan Huang
autogenerated on Mon Jan 22 2024 03:08:17