#include #include int main() { using namespace matplot; std::vector x = iota(0, pi / 20, 2 * pi); std::vector y = transform(x, [](auto x) { return sin(x); }); plot(x, y); text(pi, 0, "← sin(π)"); show(); return 0; }