#include #include int main() { using namespace matplot; std::vector x = logspace(-1, 2); std::vector y = transform(x, [](auto x) { return pow(2, x); }); loglog(x, y); show(); return 0; }