Loading...
Searching...
No Matches
matplotlibcpp Namespace Reference

## Namespaces

namespace | detail

## Classes

class | Plot

## Functions

void | backend (const std::string &name)
bool | annotate (std::string annotation, double x, double y)
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 >(), const long fig_number=0)
template<typename Numeric>
void | contour (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={})
template<typename Numeric>
void | spy (const std::vector<::std::vector< Numeric > > &x, const double markersize=-1, const std::map< std::string, std::string > &keywords={})
template<typename Numeric>
void | plot3 (const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::vector< Numeric > &z, const std::map< std::string, std::string > &keywords=std::map< std::string, std::string >(), const long fig_number=0)
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 | arrow (Numeric x, Numeric y, Numeric end_x, Numeric end_y, const std::string &fc="r", const std::string ec="k", Numeric head_length=0.25, Numeric head_width=0.1625)
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={}, PyObject **out=nullptr)
void | imshow (const float *ptr, const int rows, const int columns, const int colors, const std::map< std::string, std::string > &keywords={}, PyObject **out=nullptr)
template<typename NumericX, typename NumericY>
bool | scatter (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const double s=1.0, const std::map< std::string, std::string > &keywords={})
template<typename NumericX, typename NumericY, typename NumericColors>
bool | scatter_colored (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::vector< NumericColors > &colors, const double s=1.0, const std::map< std::string, std::string > &keywords={})
template<typename NumericX, typename NumericY, typename NumericZ>
bool | scatter (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::vector< NumericZ > &z, const double s=1.0, const std::map< std::string, std::string > &keywords={}, const long fig_number=0)
template<typename Numeric>
bool | boxplot (const std::vector< std::vector< Numeric > > &data, const std::vector< std::string > &labels={}, const std::map< std::string, std::string > &keywords={})
template<typename Numeric>
bool | boxplot (const std::vector< Numeric > &data, const std::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={})
template<typename Numeric>
bool | barh (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={ })
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 NumericZ>
bool | contour (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::vector< NumericZ > &z, const std::map< std::string, std::string > &keywords={})
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, typename NumericZ, typename NumericU, typename NumericW, typename NumericV>
bool | quiver (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::vector< NumericZ > &z, const std::vector< NumericU > &u, const std::vector< NumericW > &w, const std::vector< NumericV > &v, 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 NumericX, typename NumericY>
bool | named_plot (const std::string &name, const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &format="")
template<typename NumericX, typename NumericY>
bool | named_semilogx (const std::string &name, const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &format="")
template<typename NumericX, typename NumericY>
bool | named_semilogy (const std::string &name, const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &format="")
template<typename NumericX, typename NumericY>
bool | named_loglog (const std::string &name, const std::vector< NumericX > &x, const std::vector< NumericY > &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="")
void | colorbar (PyObject *mappable=NULL, const std::map< std::string, float > &keywords={})
long | figure (long number=-1)
bool | fignum_exists (long number)
void | figure_size (size_t w, size_t h)
void | legend ()
void | legend (const std::map< std::string, std::string > &keywords)
template<typename Numeric>
void | set_aspect (Numeric ratio)
void | set_aspect_equal ()
template<typename Numeric>
void | ylim (Numeric left, Numeric right)
template<typename Numeric>
void | xlim (Numeric left, Numeric right)
std::array< double, 2 > | xlim ()
std::array< double, 2 > | 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)
template<typename Numeric>
void | margins (Numeric margin)
template<typename Numeric>
void | margins (Numeric margin_x, Numeric margin_y)
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 | axhline (double y, double xmin=0., double xmax=1., const std::map< std::string, std::string > &keywords=std::map< std::string, std::string >())
void | axvline (double x, double ymin=0., double ymax=1., const std::map< std::string, std::string > &keywords=std::map< std::string, std::string >())
void | axvspan (double xmin, double xmax, double ymin=0., double ymax=1., const std::map< std::string, std::string > &keywords=std::map< std::string, std::string >())
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 | set_zlabel (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, const int dpi=0)
void | rcparams (const std::map< std::string, std::string > &keywords={})
void | clf ()
void | cla ()
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)

## Function Documentation

## annotate()

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

inline

Here is the call graph for this function:

## arrow()

template<typename Numeric>

bool matplotlibcpp::arrow | ( | Numeric | x,
|  | Numeric | y,
|  | Numeric | end_x,
|  | Numeric | end_y,
|  | const std::string & | fc = "r",
|  | const std::string | ec = "k",
|  | Numeric | head_length = 0.25,
|  | Numeric | head_width = 0.1625 )

Here is the call graph for this function:

## axhline()

void matplotlibcpp::axhline | ( | double | y,
|  | double | xmin = 0.,
|  | double | xmax = 1.,
|  | const std::map< std::string, std::string > & | keywords = std::map<std::string, std::string>() )

inline

Here is the call graph for this function:

## axis()

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

inline

Here is the call graph for this function:
Here is the caller graph for this function:

## axvline()

void matplotlibcpp::axvline | ( | double | x,
|  | double | ymin = 0.,
|  | double | ymax = 1.,
|  | const std::map< std::string, std::string > & | keywords = std::map<std::string, std::string>() )

inline

Here is the call graph for this function:
Here is the caller graph for this function:

## axvspan()

void matplotlibcpp::axvspan | ( | double | xmin,
|  | double | xmax,
|  | double | ymin = 0.,
|  | double | ymax = 1.,
|  | const std::map< std::string, std::string > & | keywords = std::map<std::string, std::string>() )

inline

Here is the call graph for this function:

## backend()

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

inline

Select the backend

NOTE: This must be called before the first plot command to have any effect.

Mainly useful to select the non-interactive 'Agg' backend when running matplotlibcpp in headless mode, for example on a machine with no display.

See also: https://matplotlib.org/2.0.2/api/matplotlib_configuration_api.html#matplotlib.use

## bar() [1/2]

template<typename Numeric>

bool matplotlibcpp::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 = {} )

## bar() [2/2]

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 = {} )

## barh()

template<typename Numeric>

bool matplotlibcpp::barh | ( | 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 = { } )

## boxplot() [1/2]

template<typename Numeric>

bool matplotlibcpp::boxplot | ( | const std::vector< Numeric > & | data,
|  | const std::map< std::string, std::string > & | keywords = {} )

## boxplot() [2/2]

template<typename Numeric>

bool matplotlibcpp::boxplot | ( | const std::vector< std::vector< Numeric > > & | data,
|  | const std::vector< std::string > & | labels = {},
|  | const std::map< std::string, std::string > & | keywords = {} )

## cla()

void matplotlibcpp::cla | ( |  | ) |

inline

Here is the call graph for this function:

## clf()

void matplotlibcpp::clf | ( |  | ) |

inline

Here is the call graph for this function:

## close()

void matplotlibcpp::close | ( |  | ) |

inline

Here is the call graph for this function:

## colorbar()

void matplotlibcpp::colorbar | ( | PyObject * | mappable = NULL,
|  | const std::map< std::string, float > & | keywords = {} )

inline

## contour() [1/2]

template<typename NumericX, typename NumericY, typename NumericZ>

bool matplotlibcpp::contour | ( | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::vector< NumericZ > & | z,
|  | const std::map< std::string, std::string > & | keywords = {} )

## contour() [2/2]

template<typename Numeric>

void matplotlibcpp::contour | ( | 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 = {} )

## draw()

void matplotlibcpp::draw | ( |  | ) |

inline

Here is the call graph for this function:

## 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 = {} )

## fignum_exists()

bool matplotlibcpp::fignum_exists | ( | long | number | ) |

inline

Here is the call graph for this function:

## figure()

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

inline

Here is the call graph for this function:
Here is the caller graph for this function:

## figure_size()

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

inline

Here is the call graph for this function:

## 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 )

Here is the call graph for this function:

## 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 )

Here is the call graph for this function:

## ginput()

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

inline

## grid()

void matplotlibcpp::grid | ( | bool | flag | ) |

inline

Here is the call graph for this function:
Here is the caller graph for this function:

## 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 )

Here is the call graph for this function:

## imshow() [1/2]

void matplotlibcpp::imshow | ( | const float * | ptr,
|  | const int | rows,
|  | const int | columns,
|  | const int | colors,
|  | const std::map< std::string, std::string > & | keywords = {},
|  | PyObject ** | out = nullptr )

inline

## imshow() [2/2]

void matplotlibcpp::imshow | ( | const unsigned char * | ptr,
|  | const int | rows,
|  | const int | columns,
|  | const int | colors,
|  | const std::map< std::string, std::string > & | keywords = {},
|  | PyObject ** | out = nullptr )

inline

## ion()

void matplotlibcpp::ion | ( |  | ) |

inline

Here is the call graph for this function:

## legend() [1/2]

void matplotlibcpp::legend | ( |  | ) |

inline

Here is the call graph for this function:

## legend() [2/2]

void matplotlibcpp::legend | ( | const std::map< std::string, std::string > & | keywords | ) |

inline

Here is the call graph for this function:

## loglog()

template<typename NumericX, typename NumericY>

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

Here is the call graph for this function:

## margins() [1/2]

template<typename Numeric>

void matplotlibcpp::margins | ( | Numeric | margin | ) |

inline

Here is the call graph for this function:

## margins() [2/2]

template<typename Numeric>

void matplotlibcpp::margins | ( | Numeric | margin_x,
|  | Numeric | margin_y )

inline

Here is the call graph for this function:

## 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 )

Here is the call graph for this function:

## named_loglog()

template<typename NumericX, typename NumericY>

bool matplotlibcpp::named_loglog | ( | const std::string & | name,
|  | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::string & | format = "" )

Here is the call graph for this function:

## named_plot() [1/2]

template<typename Numeric>

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

Here is the call graph for this function:

## named_plot() [2/2]

template<typename NumericX, typename NumericY>

bool matplotlibcpp::named_plot | ( | const std::string & | name,
|  | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::string & | format = "" )

Here is the call graph for this function:

## named_semilogx()

template<typename NumericX, typename NumericY>

bool matplotlibcpp::named_semilogx | ( | const std::string & | name,
|  | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::string & | format = "" )

Here is the call graph for this function:

## named_semilogy()

template<typename NumericX, typename NumericY>

bool matplotlibcpp::named_semilogy | ( | const std::string & | name,
|  | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::string & | format = "" )

Here is the call graph for this function:

## pause()

template<typename Numeric>

void matplotlibcpp::pause | ( | Numeric | interval | ) |

inline

Here is the call graph for this function:

## plot() [1/9]

template<typename... Args>

bool matplotlibcpp::plot | ( |  | ) |

Here is the caller graph for this function:

## 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 )

Here is the call graph for this function:

## 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

Here is the call graph for this function:

## plot() [4/9]

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

inline

Here is the call graph for this function:

## plot() [5/9]

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

inline

Here is the call graph for this function:

## 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 )

Plot a line through the given x and y data points..

See: https://matplotlib.org/3.2.1/api/_as_gen/matplotlib.pyplot.plot.html

Here is the call graph for this function:

## plot() [7/9]

template<typename Numeric>

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

Here is the call graph for this function:

## plot() [8/9]

template<typename Numeric>

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

Here is the call graph for this function:

## 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 = "" )

Here is the call graph for this function:

## plot3()

template<typename Numeric>

void matplotlibcpp::plot3 | ( | const std::vector< Numeric > & | x,
|  | const std::vector< Numeric > & | y,
|  | const std::vector< Numeric > & | z,
|  | const std::map< std::string, std::string > & | keywords = std::map<std::string, std::string>(),
|  | const long | fig_number = 0 )

Here is the call graph for this function:
Here is the caller graph for this function:

## 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>(),
|  | const long | fig_number = 0 )

Here is the call graph for this function:
Here is the caller graph for this function:

## quiver() [1/2]

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 = {} )

## quiver() [2/2]

template<typename NumericX, typename NumericY, typename NumericZ, typename NumericU, typename NumericW, typename NumericV>

bool matplotlibcpp::quiver | ( | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::vector< NumericZ > & | z,
|  | const std::vector< NumericU > & | u,
|  | const std::vector< NumericW > & | w,
|  | const std::vector< NumericV > & | v,
|  | const std::map< std::string, std::string > & | keywords = {} )

## rcparams()

void matplotlibcpp::rcparams | ( | const std::map< std::string, std::string > & | keywords = {} | ) |

inline

## save()

void matplotlibcpp::save | ( | const std::string & | filename,
|  | const int | dpi = 0 )

inline

Here is the call graph for this function:

## scatter() [1/2]

template<typename NumericX, typename NumericY>

bool matplotlibcpp::scatter | ( | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const double | s = 1.0,
|  | const std::map< std::string, std::string > & | keywords = {} )

## scatter() [2/2]

template<typename NumericX, typename NumericY, typename NumericZ>

bool matplotlibcpp::scatter | ( | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::vector< NumericZ > & | z,
|  | const double | s = 1.0,
|  | const std::map< std::string, std::string > & | keywords = {},
|  | const long | fig_number = 0 )

## scatter_colored()

template<typename NumericX, typename NumericY, typename NumericColors>

bool matplotlibcpp::scatter_colored | ( | const std::vector< NumericX > & | x,
|  | const std::vector< NumericY > & | y,
|  | const std::vector< NumericColors > & | colors,
|  | const double | s = 1.0,
|  | const std::map< std::string, std::string > & | keywords = {} )

## semilogx()

template<typename NumericX, typename NumericY>

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

Here is the call graph for this function:

## semilogy()

template<typename NumericX, typename NumericY>

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

Here is the call graph for this function:

## set_aspect()

template<typename Numeric>

void matplotlibcpp::set_aspect | ( | Numeric | ratio | ) |

inline

Here is the call graph for this function:
Here is the caller graph for this function:

## set_aspect_equal()

void matplotlibcpp::set_aspect_equal | ( |  | ) |

inline

Here is the call graph for this function:

## set_zlabel()

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

inline

## show()

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

inline

Here is the call graph for this function:

## spy()

template<typename Numeric>

void matplotlibcpp::spy | ( | const std::vector<::std::vector< Numeric > > & | x,
|  | const double | markersize = -1,
|  | const std::map< std::string, std::string > & | keywords = {} )

## 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 )

Here is the call graph for this function:
Here is the caller graph for this function:

## stem() [2/3]

template<typename Numeric>

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

Here is the call graph for this function:

## 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 = "" )

Here is the call graph for this function:

## subplot()

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

inline

Here is the call graph for this function:
Here is the caller graph for this function:

## subplot2grid()

void matplotlibcpp::subplot2grid | ( | long | nrows,
|  | long | ncols,
|  | long | rowid = 0,
|  | long | colid = 0,
|  | long | rowspan = 1,
|  | long | colspan = 1 )

inline

Here is the call graph for this function:

## subplots_adjust()

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

inline

## suptitle()

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

inline

## text()

template<typename Numeric>

void matplotlibcpp::text | ( | Numeric | x,
|  | Numeric | y,
|  | const std::string & | s = "" )

Here is the call graph for this function:
Here is the caller graph for this function:

## tick_params()

void matplotlibcpp::tick_params | ( | const std::map< std::string, std::string > & | keywords,
|  | const std::string | axis = "both" )

inline

Here is the call graph for this function:

## tight_layout()

void matplotlibcpp::tight_layout | ( |  | ) |

inline

Here is the call graph for this function:

## title()

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

inline

Here is the caller graph for this function:

## xkcd()

void matplotlibcpp::xkcd | ( |  | ) |

inline

Here is the call graph for this function:

## xlabel()

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

inline

## xlim() [1/2]

std::array< double, 2 > matplotlibcpp::xlim | ( |  | ) |

inline

Here is the call graph for this function:

## xlim() [2/2]

template<typename Numeric>

void matplotlibcpp::xlim | ( | Numeric | left,
|  | Numeric | right )

Here is the call graph for this function:

## xticks() [1/2]

template<typename Numeric>

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

inline

Here is the call graph for this function:

## 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

Here is the caller graph for this function:

## ylabel()

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

inline

Here is the caller graph for this function:

## ylim() [1/2]

std::array< double, 2 > matplotlibcpp::ylim | ( |  | ) |

inline

Here is the call graph for this function:

## ylim() [2/2]

template<typename Numeric>

void matplotlibcpp::ylim | ( | Numeric | left,
|  | Numeric | right )

Here is the call graph for this function:

## yticks() [1/2]

template<typename Numeric>

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

inline

Here is the call graph for this function:

## 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

Here is the caller graph for this function: