#include #include int main() { using namespace matplot; std::vector grid_ticks = iota(0, .1, 1); std::vector x; std::vector y; std::vector z; for (const auto &x_i : grid_ticks) { for (const auto &y_i : grid_ticks) { x.emplace_back(x_i); y.emplace_back(y_i); z.emplace_back(exp(x_i + y_i)); } } stem3(x, y, z); show(); return 0; }