(20.0 * 3.14 * j / n); } } plt::figure(); plt::imshow(X, { {"cmap", "Spectral"} }); plt::colorbar(); plt::show();} int main() { SetDllDirectoryW(L"D:\\XXXXX\\python38\\Library\\bin"); Py_SetPythonHome((wchar_t*)(L"D:\\XXXXX\\python38")); waves(200); ...
Eigen::MatrixXd X(n, n); for (unsigned i = 0; i < n; ++i) { for (unsigned j = 0; j < n; ++j) { X(i, j) = sin(3.0 * 3.14 * i / n) * cos(20.0 * 3.14 * j / n); } } plt::figure(); plt::imshow(X, { {"cmap", "Spectral"} }); plt::colorbar(); pl...
add_executable(colorbar examples/colorbar.cpp) target_link_libraries(colorbar PRIVATE matplotlib_cpp) set_target_properties(colorbar PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") add_executable(contour examples/contour.cpp) target_link_libraries(contour PRIVATE matplotlib_cpp) ...
Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib - matplotlib-cpp/matplotlibcpp.h at master · lava/matplotlib-cpp
Mar 28, 2020 implement colorbar; requires returned PyObject of mappable object 102 PyObject *s_python_function_colorbar; Jan 12, 2019 Add bar plot and subplots_adjust 103 PyObject *s_python_function_subplots_adjust; Mar 26, 2021 Add 3D scatter plots, allow more than one 3d plot on the...