Skip to content

Plots

1
find_package(Matplot++ QUIET)

1
2
3
4
if (Matplot++_FOUND)
    add_executable(plots plots.cpp)
    target_link_libraries(plots PRIVATE Matplot++::matplot)
endif ()

1
#include <matplot/matplot.h>

1
2
matplot::plot(std::vector{1, 2, 3, 4, 5, 6});
matplot::show();

Share Snippets