#include #include int main() { using namespace matplot; std::vector x = linspace(-pi, pi, 40); std::vector z = transform(x, [](double x) { return cos(x); }); stem3(z, "--*m"); show(); return 0; }