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
d087703a
Commit
d087703a
authored
Feb 26, 2022
by
soblin
Browse files
Options
Downloads
Patches
Plain Diff
switch AxesSubplot/Axes3D by checking props like plot_surface
parent
51dce98e
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+6
-6
6 additions, 6 deletions
CMakeLists.txt
README.md
+1
-0
1 addition, 0 deletions
README.md
include/matplotlibcpp17/animation.h
+0
-1
0 additions, 1 deletion
include/matplotlibcpp17/animation.h
include/matplotlibcpp17/axes.h
+8
-3
8 additions, 3 deletions
include/matplotlibcpp17/axes.h
with
15 additions
and
10 deletions
CMakeLists.txt
+
6
−
6
View file @
d087703a
...
...
@@ -28,12 +28,12 @@ endfunction()
if
(
${
ADD_DEMO
}
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_FLAGS
"-Wall -g -DUSE_GUI=
${
USE_GUI
}
"
)
#
add_subdirectory(gallery/lines_bars_and_markers)
#
add_subdirectory(gallery/subplots_axes_and_figures)
#
add_subdirectory(gallery/statistics)
#
add_subdirectory(gallery/images_contours_and_fields)
#
add_subdirectory(gallery/shapes_and_collections)
#
add_subdirectory(gallery/artist_animation)
add_subdirectory
(
gallery/lines_bars_and_markers
)
add_subdirectory
(
gallery/subplots_axes_and_figures
)
add_subdirectory
(
gallery/statistics
)
add_subdirectory
(
gallery/images_contours_and_fields
)
add_subdirectory
(
gallery/shapes_and_collections
)
add_subdirectory
(
gallery/artist_animation
)
add_subdirectory
(
gallery/mplot3d
)
endif
()
...
...
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
d087703a
...
...
@@ -12,6 +12,7 @@ It is supposed to provide the user with almost full access to matplotlib feature
-
pybind11(https://github.com/pybind/pybind11) >= 2.9.0
-
compatible with matplotlib(https://matplotlib.org/stable/index.html) == 3.5.1 as of now
-
numpy(only for 3D-plotting)
## Usage
...
...
...
...
This diff is collapsed.
Click to expand it.
include/matplotlibcpp17/animation.h
+
0
−
1
View file @
d087703a
...
...
@@ -29,7 +29,6 @@ public:
private
:
void
load_attrs
()
{
LOAD_FUNC_ATTR
(
save
,
self
);
}
pybind11
::
object
self
;
pybind11
::
object
save_attr
;
};
...
...
...
...
This diff is collapsed.
Click to expand it.
include/matplotlibcpp17/axes.h
+
8
−
3
View file @
d087703a
...
...
@@ -222,8 +222,14 @@ private:
LOAD_FUNC_ATTR
(
invert_yaxis
,
self
);
LOAD_FUNC_ATTR
(
legend
,
self
);
LOAD_FUNC_ATTR
(
plot
,
self
);
LOAD_FUNC_ATTR
(
plot_surface
,
self
);
LOAD_FUNC_ATTR
(
plot_wireframe
,
self
);
// NOTE: only when called with projection='3d', `plot_surface`, `plot_wireframe`, `set_zlabel` prop exists.
try
{
plot_surface_attr
=
self
.
attr
(
"plot_surface"
);
plot_wireframe_attr
=
self
.
attr
(
"plot_wireframe"
);
set_zlabel_attr
=
self
.
attr
(
"set_zlabel"
);
std
::
cout
<<
"Loaded Axes3D."
<<
std
::
endl
;
}
catch
(...)
{}
LOAD_FUNC_ATTR
(
quiver
,
self
);
LOAD_FUNC_ATTR
(
quiverkey
,
self
);
LOAD_FUNC_ATTR
(
scatter
,
self
);
...
...
@@ -237,7 +243,6 @@ private:
LOAD_FUNC_ATTR
(
set_ylabel
,
self
);
LOAD_FUNC_ATTR
(
set_ylim
,
self
);
LOAD_FUNC_ATTR
(
set_yticks
,
self
);
LOAD_FUNC_ATTR
(
set_zlabel
,
self
);
LOAD_FUNC_ATTR
(
text
,
self
);
LOAD_FUNC_ATTR
(
tick_params
,
self
);
}
...
...
...
...
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
sign in
to comment