#include #include int main() { using namespace matplot; std::vector x = linspace(0, 2 * pi, 50); std::vector y = transform(x, [](auto x) { return cos(x); }); stem(x, y); show(); return 0; }