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