Loading...
Searching...
No Matches
matplotlibcpp.h File Reference
`#include <Python.h>`
`#include <vector>`
`#include <map>`
`#include <array>`
`#include <numeric>`
`#include <algorithm>`
`#include <stdexcept>`
`#include <iostream>`
`#include <cstdint>`
`#include <functional>`
`#include <string>`
`#include <numpy/arrayobject.h>`
Include dependency graph for matplotlibcpp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes

struct | matplotlibcpp::detail::_interpreter
struct | matplotlibcpp::detail::select_npy_type< T >
struct | matplotlibcpp::detail::select_npy_type< double >
struct | matplotlibcpp::detail::select_npy_type< float >
struct | matplotlibcpp::detail::select_npy_type< bool >
struct | matplotlibcpp::detail::select_npy_type< int8_t >
struct | matplotlibcpp::detail::select_npy_type< int16_t >
struct | matplotlibcpp::detail::select_npy_type< int32_t >
struct | matplotlibcpp::detail::select_npy_type< int64_t >
struct | matplotlibcpp::detail::select_npy_type< uint8_t >
struct | matplotlibcpp::detail::select_npy_type< uint16_t >
struct | matplotlibcpp::detail::select_npy_type< uint32_t >
struct | matplotlibcpp::detail::select_npy_type< uint64_t >
struct | matplotlibcpp::detail::select_npy_type< long long >
struct | matplotlibcpp::detail::select_npy_type< unsigned long long >
struct | matplotlibcpp::detail::is_callable_impl< false, T >
struct | matplotlibcpp::detail::is_callable_impl< true, T >
struct | matplotlibcpp::detail::is_callable_impl< true, T >::Fallback
struct | matplotlibcpp::detail::is_callable_impl< true, T >::Derived
struct | matplotlibcpp::detail::is_callable< T >
struct | matplotlibcpp::detail::plot_impl< IsYDataCallable >
struct | matplotlibcpp::detail::plot_impl< std::false_type >
struct | matplotlibcpp::detail::plot_impl< std::true_type >
class | matplotlibcpp::Plot

## Namespaces

namespace | matplotlibcpp
namespace | matplotlibcpp::detail

## Macros

#define | NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION

## Typedefs

template<typename T>
using | matplotlibcpp::detail::is_function = typename std::is_function<std::remove_pointer<std::remove_reference<T>>>::type

## Functions

void | matplotlibcpp::backend (const std::string &name)
bool | matplotlibcpp::annotate (std::string annotation, double x, double y)
template<typename Numeric>
PyObject * | matplotlibcpp::detail::get_array (const std::vector< Numeric > &v)
template<typename Numeric>
PyObject * | matplotlibcpp::detail::get_2darray (const std::vector<::std::vector< Numeric > > &v)
PyObject * | matplotlibcpp::detail::get_array (const std::vector< std::string > &strings)
template<typename Numeric>
PyObject * | matplotlibcpp::detail::get_listlist (const std::vector< std::vector< Numeric > > &ll)
template<typename Numeric>
bool | matplotlibcpp::plot (const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords)
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)
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={})
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={})
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)
template<typename Numeric>
bool | matplotlibcpp::stem (const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords)
template<typename Numeric>
bool | matplotlibcpp::fill (const std::vector< Numeric > &x, const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords)
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)
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)
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)
void | matplotlibcpp::detail::imshow (void *ptr, const NPY_TYPES type, const int rows, const int columns, const int colors, const std::map< std::string, std::string > &keywords, PyObject **out)
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)
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)
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={})
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={})
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)
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={})
template<typename Numeric>
bool | matplotlibcpp::boxplot (const std::vector< Numeric > &data, const std::map< std::string, std::string > &keywords={})
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={})
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={})
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={ })
bool | matplotlibcpp::subplots_adjust (const std::map< std::string, double > &keywords={})
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)
template<typename NumericX, typename NumericY>
bool | matplotlibcpp::plot (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
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={})
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={})
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={})
template<typename NumericX, typename NumericY>
bool | matplotlibcpp::stem (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
template<typename NumericX, typename NumericY>
bool | matplotlibcpp::semilogx (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
template<typename NumericX, typename NumericY>
bool | matplotlibcpp::semilogy (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
template<typename NumericX, typename NumericY>
bool | matplotlibcpp::loglog (const std::vector< NumericX > &x, const std::vector< NumericY > &y, const std::string &s="")
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={})
template<typename Numeric>
bool | matplotlibcpp::named_plot (const std::string &name, const std::vector< Numeric > &y, const std::string &format="")
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="")
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="")
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="")
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="")
template<typename Numeric>
bool | matplotlibcpp::plot (const std::vector< Numeric > &y, const std::string &format="")
template<typename Numeric>
bool | matplotlibcpp::plot (const std::vector< Numeric > &y, const std::map< std::string, std::string > &keywords)
template<typename Numeric>
bool | matplotlibcpp::stem (const std::vector< Numeric > &y, const std::string &format="")
template<typename Numeric>
void | matplotlibcpp::text (Numeric x, Numeric y, const std::string &s="")
void | matplotlibcpp::colorbar (PyObject *mappable=NULL, const std::map< std::string, float > &keywords={})
long | matplotlibcpp::figure (long number=-1)
bool | matplotlibcpp::fignum_exists (long number)
void | matplotlibcpp::figure_size (size_t w, size_t h)
void | matplotlibcpp::legend ()
void | matplotlibcpp::legend (const std::map< std::string, std::string > &keywords)
template<typename Numeric>
void | matplotlibcpp::set_aspect (Numeric ratio)
void | matplotlibcpp::set_aspect_equal ()
template<typename Numeric>
void | matplotlibcpp::ylim (Numeric left, Numeric right)
template<typename Numeric>
void | matplotlibcpp::xlim (Numeric left, Numeric right)
std::array< double, 2 > | matplotlibcpp::xlim ()
std::array< double, 2 > | matplotlibcpp::ylim ()
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={})
template<typename Numeric>
void | matplotlibcpp::xticks (const std::vector< Numeric > &ticks, const std::map< std::string, std::string > &keywords)
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={})
template<typename Numeric>
void | matplotlibcpp::yticks (const std::vector< Numeric > &ticks, const std::map< std::string, std::string > &keywords)
template<typename Numeric>
void | matplotlibcpp::margins (Numeric margin)
template<typename Numeric>
void | matplotlibcpp::margins (Numeric margin_x, Numeric margin_y)
void | matplotlibcpp::tick_params (const std::map< std::string, std::string > &keywords, const std::string axis="both")
void | matplotlibcpp::subplot (long nrows, long ncols, long plot_number)
void | matplotlibcpp::subplot2grid (long nrows, long ncols, long rowid=0, long colid=0, long rowspan=1, long colspan=1)
void | matplotlibcpp::title (const std::string &titlestr, const std::map< std::string, std::string > &keywords={})
void | matplotlibcpp::suptitle (const std::string &suptitlestr, const std::map< std::string, std::string > &keywords={})
void | matplotlibcpp::axis (const std::string &axisstr)
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 >())
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 >())
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 >())
void | matplotlibcpp::xlabel (const std::string &str, const std::map< std::string, std::string > &keywords={})
void | matplotlibcpp::ylabel (const std::string &str, const std::map< std::string, std::string > &keywords={})
void | matplotlibcpp::set_zlabel (const std::string &str, const std::map< std::string, std::string > &keywords={})
void | matplotlibcpp::grid (bool flag)
void | matplotlibcpp::show (const bool block=true)
void | matplotlibcpp::close ()
void | matplotlibcpp::xkcd ()
void | matplotlibcpp::draw ()
template<typename Numeric>
void | matplotlibcpp::pause (Numeric interval)
void | matplotlibcpp::save (const std::string &filename, const int dpi=0)
void | matplotlibcpp::rcparams (const std::map< std::string, std::string > &keywords={})
void | matplotlibcpp::clf ()
void | matplotlibcpp::cla ()
void | matplotlibcpp::ion ()
std::vector< std::array< double, 2 > > | matplotlibcpp::ginput (const int numClicks=1, const std::map< std::string, std::string > &keywords={})
void | matplotlibcpp::tight_layout ()
template<typename... Args>
bool | matplotlibcpp::plot ()
template<typename A, typename B, typename... Args>
bool | matplotlibcpp::plot (const A &a, const B &b, const std::string &format, Args... args)
bool | matplotlibcpp::plot (const std::vector< double > &x, const std::vector< double > &y, const std::string &format="")
bool | matplotlibcpp::plot (const std::vector< double > &y, const std::string &format="")
bool | matplotlibcpp::plot (const std::vector< double > &x, const std::vector< double > &y, const std::map< std::string, std::string > &keywords)

## Variables

static std::string | matplotlibcpp::detail::s_backend

## Macro Definition Documentation

## NPY_NO_DEPRECATED_API

#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION