#include int main() { using namespace matplot; std::vector x = rand(20, -1, +1); std::vector y = rand(20, -1, +1); auto ax1 = subplot(1, 2, 0); compass(ax1, x, y); auto ax2 = subplot(1, 2, 1); vectors_handle l = std::make_shared(ax2, x, y); ax2->emplace_object(l); show(); return 0; }