Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matplotlibcpp17
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HKHLR
matplotlibcpp17
Commits
6eb8b6ae
Commit
6eb8b6ae
authored
2 years ago
by
Iwainsky, Christian
Browse files
Options
Downloads
Patches
Plain Diff
aded vlines to axis
parent
c6c55002
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/matplotlibcpp17/axes.h
+13
-1
13 additions, 1 deletion
include/matplotlibcpp17/axes.h
with
13 additions
and
1 deletion
include/matplotlibcpp17/axes.h
+
13
−
1
View file @
6eb8b6ae
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment