#include #include int main() { using namespace matplot; std::vector x = linspace(-5, +5, 60); std::vector y = transform(x, [](double x) { return cos(x); }); std::vector z = transform(x, [](double x) { return pow(x, 2); }); stem3(x, y, z); view(-8, 30); show(); return 0; }