Namespace matplotlibcpp::detail

namespace detail

Typedefs

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

Functions

template<typename Numeric>
PyObject *get_array(const std::vector<Numeric> &v)
template<typename Numeric>
PyObject *get_2darray(const std::vector<::std::vector<Numeric>> &v)
inline PyObject *get_array(const std::vector<std::string> &strings)
template<typename Numeric>
PyObject *get_listlist(const std::vector<std::vector<Numeric>> &ll)
inline void 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)

Variables

static std::string s_backend
struct _interpreter

Public Functions

inline PyObject *safe_import(PyObject *module, std::string fname)

Public Members

PyObject *s_python_function_show
PyObject *s_python_function_close
PyObject *s_python_function_draw
PyObject *s_python_function_pause
PyObject *s_python_function_save
PyObject *s_python_function_figure
PyObject *s_python_function_fignum_exists
PyObject *s_python_function_plot
PyObject *s_python_function_quiver
PyObject *s_python_function_semilogx
PyObject *s_python_function_semilogy
PyObject *s_python_function_loglog
PyObject *s_python_function_fill
PyObject *s_python_function_fill_between
PyObject *s_python_function_hist
PyObject *s_python_function_imshow
PyObject *s_python_function_scatter
PyObject *s_python_function_boxplot
PyObject *s_python_function_subplot
PyObject *s_python_function_subplot2grid
PyObject *s_python_function_legend
PyObject *s_python_function_xlim
PyObject *s_python_function_ion
PyObject *s_python_function_ginput
PyObject *s_python_function_ylim
PyObject *s_python_function_title
PyObject *s_python_function_axis
PyObject *s_python_function_axvline
PyObject *s_python_function_xlabel
PyObject *s_python_function_ylabel
PyObject *s_python_function_gca
PyObject *s_python_function_xticks
PyObject *s_python_function_yticks
PyObject *s_python_function_tick_params
PyObject *s_python_function_grid
PyObject *s_python_function_clf
PyObject *s_python_function_errorbar
PyObject *s_python_function_annotate
PyObject *s_python_function_tight_layout
PyObject *s_python_colormap
PyObject *s_python_empty_tuple
PyObject *s_python_function_stem
PyObject *s_python_function_xkcd
PyObject *s_python_function_text
PyObject *s_python_function_suptitle
PyObject *s_python_function_bar
PyObject *s_python_function_colorbar
PyObject *s_python_function_subplots_adjust

Public Static Functions

static inline _interpreter &get()
template<typename T>
struct is_callable

Public Types

typedef is_callable_impl<std::is_class<T>::value, T>::type type
template<bool obj, typename T>
struct is_callable_impl
template<typename T>
struct is_callable_impl<false, T>

Public Types

typedef is_function<T> type
template<typename T>
struct is_callable_impl<true, T>

Public Types

typedef decltype(test<Derived>(nullptr)) type
typedef decltype(&Fallback::operator()) dtype

Public Static Functions

template<typename U>
static std::true_type test(...)
template<typename U>
static std::false_type test(Check<void (Fallback::*)(), &U::operator()>*)

Public Static Attributes

static constexpr bool value = type::value
template<typename U, U>
struct Check
template<>
struct Derived : public T, public matplotlibcpp::detail::is_callable_impl<true, T>::Fallback
template<>
struct Fallback

Subclassed by matplotlibcpp::detail::is_callable_impl< true, T >::Derived

Public Functions

void operator()()
template<typename IsYDataCallable>
struct plot_impl
template<>
struct plot_impl<std::false_type>

Public Functions

template<typename IterableX, typename IterableY>
inline bool operator()(const IterableX &x, const IterableY &y, const std::string &format)
template<>
struct plot_impl<std::true_type>

Public Functions

template<typename Iterable, typename Callable>
inline bool operator()(const Iterable &ticks, const Callable &f, const std::string &format)
template<typename T>
struct select_npy_type

Public Static Attributes

static const NPY_TYPES type = NPY_NOTYPE
template<>
struct select_npy_type<bool>

Public Static Attributes

static const NPY_TYPES type = NPY_BOOL
template<>
struct select_npy_type<double>

Public Static Attributes

static const NPY_TYPES type = NPY_DOUBLE
template<>
struct select_npy_type<float>

Public Static Attributes

static const NPY_TYPES type = NPY_FLOAT
template<>
struct select_npy_type<int16_t>

Public Static Attributes

static const NPY_TYPES type = NPY_SHORT
template<>
struct select_npy_type<int32_t>

Public Static Attributes

static const NPY_TYPES type = NPY_INT
template<>
struct select_npy_type<int64_t>

Public Static Attributes

static const NPY_TYPES type = NPY_INT64
template<>
struct select_npy_type<int8_t>

Public Static Attributes

static const NPY_TYPES type = NPY_INT8
template<>
struct select_npy_type<uint16_t>

Public Static Attributes

static const NPY_TYPES type = NPY_USHORT
template<>
struct select_npy_type<uint32_t>

Public Static Attributes

static const NPY_TYPES type = NPY_ULONG
template<>
struct select_npy_type<uint64_t>

Public Static Attributes

static const NPY_TYPES type = NPY_UINT64
template<>
struct select_npy_type<uint8_t>

Public Static Attributes

static const NPY_TYPES type = NPY_UINT8