#include #include int main() { using namespace matplot; std::vector theta = iota(0, 0.01, 2 * pi); std::vector rho = transform(theta, [](auto t) { return sin(2 * t) * cos(2 * t); }); polarplot(theta, rho); show(); return 0; }