Skip to content

Commit 0368a24

Browse files
authored
added axes::cla (#29)
Signed-off-by: soblin <hilo.soblin@gmail.com>
1 parent b49de37 commit 0368a24

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/matplotlibcpp17/axes.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ struct DECL_STRUCT_ATTR Axes : public BaseWrapper {
6868
container::BarContainer barh(const pybind11::tuple &args = pybind11::tuple(),
6969
const pybind11::dict &kwargs = pybind11::dict());
7070

71+
// cla
72+
ObjectWrapper cla(const pybind11::tuple &args = pybind11::tuple(),
73+
const pybind11::dict &kwargs = pybind11::dict());
74+
7175
// contour
7276
ObjectWrapper contour(const pybind11::tuple &args = pybind11::tuple(),
7377
const pybind11::dict &kwargs = pybind11::dict());
@@ -259,6 +263,7 @@ struct DECL_STRUCT_ATTR Axes : public BaseWrapper {
259263
WARN_MSG("Not loading bar_label because matplotlib version is < 3.4.0");
260264
#endif
261265
LOAD_FUNC_ATTR(barh, self);
266+
LOAD_FUNC_ATTR(cla, self);
262267
LOAD_FUNC_ATTR(contour, self);
263268
LOAD_FUNC_ATTR(contourf, self);
264269
LOAD_FUNC_ATTR(errorbar, self);
@@ -304,6 +309,7 @@ struct DECL_STRUCT_ATTR Axes : public BaseWrapper {
304309
pybind11::object bar_attr;
305310
pybind11::object bar_label_attr;
306311
pybind11::object barh_attr;
312+
pybind11::object cla_attr;
307313
pybind11::object contour_attr;
308314
pybind11::object contourf_attr;
309315
pybind11::object errorbar_attr;
@@ -404,6 +410,13 @@ container::BarContainer Axes::barh(const pybind11::tuple &args,
404410
return container::BarContainer(obj);
405411
}
406412

413+
// cla
414+
ObjectWrapper Axes::cla(const pybind11::tuple &args,
415+
const pybind11::dict &kwargs) {
416+
pybind11::object ret = cla_attr(*args, **kwargs);
417+
return ObjectWrapper(std::move(ret));
418+
}
419+
407420
// contour
408421
ObjectWrapper Axes::contour(const pybind11::tuple &args,
409422
const pybind11::dict &kwargs) {

0 commit comments

Comments
 (0)