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
0bc9d865
Commit
0bc9d865
authored
2 years ago
by
Iwainsky, Christian
Browse files
Options
Downloads
Patches
Plain Diff
added method to match the Matplot step for Axis
parent
b49de375
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
+11
-0
11 additions, 0 deletions
include/matplotlibcpp17/axes.h
with
11 additions
and
0 deletions
include/matplotlibcpp17/axes.h
+
11
−
0
View file @
0bc9d865
...
@@ -139,6 +139,9 @@ public:
...
@@ -139,6 +139,9 @@ public:
// plot
// plot
ObjectWrapper
plot
(
const
pybind11
::
tuple
&
args
=
pybind11
::
tuple
(),
ObjectWrapper
plot
(
const
pybind11
::
tuple
&
args
=
pybind11
::
tuple
(),
const
pybind11
::
dict
&
kwargs
=
pybind11
::
dict
());
const
pybind11
::
dict
&
kwargs
=
pybind11
::
dict
());
// step
ObjectWrapper
step
(
const
pybind11
::
tuple
&
args
=
pybind11
::
tuple
(),
const
pybind11
::
dict
&
kwargs
=
pybind11
::
dict
());
// plot_surface
// plot_surface
ObjectWrapper
plot_surface
(
const
pybind11
::
tuple
&
args
=
pybind11
::
tuple
(),
ObjectWrapper
plot_surface
(
const
pybind11
::
tuple
&
args
=
pybind11
::
tuple
(),
...
@@ -277,6 +280,7 @@ private:
...
@@ -277,6 +280,7 @@ private:
LOAD_FUNC_ATTR
(
legend
,
self
);
LOAD_FUNC_ATTR
(
legend
,
self
);
LOAD_FUNC_ATTR
(
pcolormesh
,
self
);
LOAD_FUNC_ATTR
(
pcolormesh
,
self
);
LOAD_FUNC_ATTR
(
plot
,
self
);
LOAD_FUNC_ATTR
(
plot
,
self
);
LOAD_FUNC_ATTR
(
step
,
self
);
LOAD_FUNC_ATTR
(
quiver
,
self
);
LOAD_FUNC_ATTR
(
quiver
,
self
);
LOAD_FUNC_ATTR
(
quiverkey
,
self
);
LOAD_FUNC_ATTR
(
quiverkey
,
self
);
LOAD_FUNC_ATTR
(
scatter
,
self
);
LOAD_FUNC_ATTR
(
scatter
,
self
);
...
@@ -322,6 +326,7 @@ private:
...
@@ -322,6 +326,7 @@ private:
pybind11
::
object
legend_attr
;
pybind11
::
object
legend_attr
;
pybind11
::
object
pcolormesh_attr
;
pybind11
::
object
pcolormesh_attr
;
pybind11
::
object
plot_attr
;
pybind11
::
object
plot_attr
;
pybind11
::
object
step_attr
;
pybind11
::
object
plot_surface_attr
;
pybind11
::
object
plot_surface_attr
;
pybind11
::
object
plot_wireframe_attr
;
pybind11
::
object
plot_wireframe_attr
;
pybind11
::
object
quiver_attr
;
pybind11
::
object
quiver_attr
;
...
@@ -554,6 +559,12 @@ ObjectWrapper Axes::plot(const pybind11::tuple &args,
...
@@ -554,6 +559,12 @@ ObjectWrapper Axes::plot(const pybind11::tuple &args,
pybind11
::
object
ret
=
plot_attr
(
*
args
,
**
kwargs
);
pybind11
::
object
ret
=
plot_attr
(
*
args
,
**
kwargs
);
return
ObjectWrapper
(
std
::
move
(
ret
));
return
ObjectWrapper
(
std
::
move
(
ret
));
}
}
// plot
ObjectWrapper
Axes
::
step
(
const
pybind11
::
tuple
&
args
,
const
pybind11
::
dict
&
kwargs
)
{
pybind11
::
object
ret
=
step_attr
(
*
args
,
**
kwargs
);
return
ObjectWrapper
(
std
::
move
(
ret
));
}
// plot_surface
// plot_surface
ObjectWrapper
Axes
::
plot_surface
(
const
pybind11
::
tuple
&
args
,
ObjectWrapper
Axes
::
plot_surface
(
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