matplotlibcpp17
patches.h
1
5#pragma once
6
7#include <matplotlibcpp17/common.h>
8
9#include <pybind11/pybind11.h>
10
11namespace matplotlibcpp17::patches {
12
16struct DECL_STRUCT_ATTR Circle : public BaseWrapper {
17public:
18 Circle(const pybind11::tuple &args = pybind11::tuple(),
19 const pybind11::dict &kwargs = pybind11::dict()) {
20 circle_attr = pybind11::module::import("matplotlib.patches").attr("Circle");
21 self = circle_attr(*args, **kwargs);
22 }
23
24private:
25 pybind11::object circle_attr;
26};
27
31struct DECL_STRUCT_ATTR Ellipse : public BaseWrapper {
32public:
33 Ellipse(const pybind11::tuple &args = pybind11::tuple(),
34 const pybind11::dict &kwargs = pybind11::dict()) {
35 ellipse_attr =
36 pybind11::module::import("matplotlib.patches").attr("Ellipse");
37 self = ellipse_attr(*args, **kwargs);
38 }
39
40private:
41 pybind11::object ellipse_attr;
42};
43
47struct DECL_STRUCT_ATTR Rectangle : public BaseWrapper {
48public:
49 Rectangle(const pybind11::tuple &args = pybind11::tuple(),
50 const pybind11::dict &kwargs = pybind11::dict()) {
51 rectangle_attr =
52 pybind11::module::import("matplotlib.patches").attr("Rectangle");
53 self = rectangle_attr(*args, **kwargs);
54 }
55
56private:
57 pybind11::object rectangle_attr;
58};
59
63struct DECL_STRUCT_ATTR Wedge : public BaseWrapper {
64public:
65 Wedge(const pybind11::tuple &args = pybind11::tuple(),
66 const pybind11::dict &kwargs = pybind11::dict()) {
67 wedge_attr = pybind11::module::import("matplotlib.patches").attr("Wedge");
68 self = wedge_attr(*args, **kwargs);
69 }
70
71private:
72 pybind11::object wedge_attr;
73};
74
78struct DECL_STRUCT_ATTR Polygon : public BaseWrapper {
79public:
80 Polygon(const pybind11::tuple &args = pybind11::tuple(),
81 const pybind11::dict &kwargs = pybind11::dict()) {
82 polygon_attr =
83 pybind11::module::import("matplotlib.patches").attr("Polygon");
84 self = polygon_attr(*args, **kwargs);
85 }
86
87private:
88 pybind11::object polygon_attr;
89};
90
91} // namespace matplotlibcpp17::patches
A base class for python wrapper classes.
Definition: common.h:39
A wrapper class for matplotlib.patches.Circle.
Definition: patches.h:16
A wrapper class for matplotlib.patches.Ellipse.
Definition: patches.h:31
A wrapper class for matplotlib.patches.Polygon.
Definition: patches.h:78
A wrapper class for matplotlib.patches.Rectangle.
Definition: patches.h:47
A wrapper class for matplotlib.patches.Wedge.
Definition: patches.h:63