#include #include int main() { using namespace matplot; std::vector theta = iota(pi / 6, pi / 6, 2 * pi); std::vector rho1 = rand(12, 0, 1); polarscatter(theta, rho1, "filled"); hold(on); std::vector rho2 = rand(12, 0, 1); polarscatter(theta, rho2, "filled"); hold(off); auto l = ::matplot::legend({"Series A", "Series B"}); l->location(legend::general_alignment::topright); show(); return 0; }