Skip to content
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ target_include_directories(matplotlib_cpp
16
16
target_compile_features (matplotlib_cpp INTERFACE
17
17
cxx_std_11
18
18
)
19
+ # TODO: Use `Development.Embed` component when requiring cmake >= 3.18
19
20
find_package (Python3 COMPONENTS Interpreter Development REQUIRED )
20
21
target_link_libraries (matplotlib_cpp INTERFACE
21
22
Python3::Python
@@ -92,6 +93,13 @@ if(Python3_NumPy_FOUND)
92
93
add_executable (colorbar examples/colorbar.cpp )
93
94
target_link_libraries (colorbar PRIVATE matplotlib_cpp )
94
95
set_target_properties (colorbar PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin" )
96
+ add_executable (contour examples/contour.cpp )
97
+ target_link_libraries (contour PRIVATE matplotlib_cpp )
98
+ set_target_properties (contour PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin" )
99
+
100
+ add_executable (spy examples/spy.cpp )
101
+ target_link_libraries (spy PRIVATE matplotlib_cpp )
102
+ set_target_properties (spy PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin" )
95
103
endif ()
96
104
97
105
Original file line number Diff line number Diff line change 1
- #import < iostream>
2
- #import < vector>
3
- #import " ../matplotlibcpp.h"
1
+ #include " ../matplotlibcpp.h"
2
+
3
+ #include < iostream>
4
+ #include < vector>
4
5
5
6
namespace plt = matplotlibcpp;
6
7
@@ -26,4 +27,4 @@ int main()
26
27
plt::show ();
27
28
28
29
return 0 ;
29
- }
30
+ }
Original file line number Diff line number Diff line change @@ -354,7 +354,6 @@ static_assert(sizeof(long long) == 8);
354
354
template <> struct select_npy_type <long long > { const static NPY_TYPES type = NPY_INT64; };
355
355
static_assert (sizeof (unsigned long long ) == 8);
356
356
template <> struct select_npy_type <unsigned long long > { const static NPY_TYPES type = NPY_UINT64; };
357
- TODO: add int , long , etc.
358
357
359
358
template <typename Numeric>
360
359
PyObject* get_array (const std::vector<Numeric>& v)
You can’t perform that action at this time.
0 commit comments