#include #include int main() { using namespace matplot; std::vector x = iota(0, 1000); std::vector y = transform(x, [](auto x) { return log(x); }); semilogx(x, y); show(); return 0; }