Skip to content
Snippets Groups Projects
Commit 6eb8b6ae authored by Iwainsky, Christian's avatar Iwainsky, Christian
Browse files

aded vlines to axis

parent c6c55002
Branches Sprint/2020-21
Tags v1.1.1
No related merge requests found
...@@ -56,6 +56,10 @@ public: ...@@ -56,6 +56,10 @@ public:
ObjectWrapper axhline(const pybind11::tuple &args = pybind11::tuple(), ObjectWrapper axhline(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict()); const pybind11::dict &kwargs = pybind11::dict());
// axvline
ObjectWrapper axvline(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// bar // bar
container::BarContainer bar(const pybind11::tuple &args = pybind11::tuple(), container::BarContainer bar(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict()); const pybind11::dict &kwargs = pybind11::dict());
...@@ -255,6 +259,7 @@ private: ...@@ -255,6 +259,7 @@ private:
LOAD_FUNC_ATTR(add_collection, self); LOAD_FUNC_ATTR(add_collection, self);
LOAD_FUNC_ATTR(add_patch, self); LOAD_FUNC_ATTR(add_patch, self);
LOAD_FUNC_ATTR(axhline, self); LOAD_FUNC_ATTR(axhline, self);
LOAD_FUNC_ATTR(axvline, self);
LOAD_FUNC_ATTR(bar, self); LOAD_FUNC_ATTR(bar, self);
#if MATPLOTLIB_MINOR_VER_GTE_4 #if MATPLOTLIB_MINOR_VER_GTE_4
LOAD_FUNC_ATTR(bar_label, self); LOAD_FUNC_ATTR(bar_label, self);
...@@ -305,6 +310,7 @@ private: ...@@ -305,6 +310,7 @@ private:
pybind11::object add_collection_attr; pybind11::object add_collection_attr;
pybind11::object add_patch_attr; pybind11::object add_patch_attr;
pybind11::object axhline_attr; pybind11::object axhline_attr;
pybind11::object axvline_attr;
pybind11::object bar_attr; pybind11::object bar_attr;
pybind11::object bar_label_attr; pybind11::object bar_label_attr;
pybind11::object barh_attr; pybind11::object barh_attr;
...@@ -381,6 +387,12 @@ ObjectWrapper Axes::axhline(const pybind11::tuple &args, ...@@ -381,6 +387,12 @@ ObjectWrapper Axes::axhline(const pybind11::tuple &args,
pybind11::object ret = axhline_attr(*args, **kwargs); pybind11::object ret = axhline_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret)); return ObjectWrapper(std::move(ret));
} }
// axvline
ObjectWrapper Axes::axvline(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = axvline_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// bar // bar
container::BarContainer Axes::bar(const pybind11::tuple &args, container::BarContainer Axes::bar(const pybind11::tuple &args,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment