Compass 1compass(u, v); Plot C++ 1 2 3 4 5 6 7 8 9 10 11 12#include <matplot/matplot.h> int main() { using namespace matplot; std::vector<double> x = rand(20, -1, +1); std::vector<double> y = rand(20, -1, +1); compass(x, y); show(); return 0; } More examples Plot C++ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17#include <matplot/matplot.h> int main() { using namespace matplot; std::vector<double> x = rand(20, -1, +1); std::vector<double> 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<class vectors>(ax2, x, y); ax2->emplace_object(l); show(); return 0; }