#include #include int main() { using namespace matplot; auto r1 = rand(100000, 0, 1); auto r2 = rand(100000, 0, 1); std::vector theta = transform( r1, r2, [](double x, double y) { return atan2(x - .5, 2 * (y - .5)); }); auto h = polarhistogram(theta, 25); h->stairs_only(true); show(); return 0; }