#include #include int main() { using namespace matplot; std::vector x = linspace(0, 2 * pi, 50); std::vector y = transform(x, [](auto x) { return exp(0.3 * x) * sin(3 * x); }); stem(x, y); gca()->x_axis().zero_axis(false); show(); return 0; }