#include #include int main() { using namespace matplot; std::vector x = linspace(-2 * pi, 2 * pi); std::vector y = linspace(0, 4 * pi); auto [X, Y] = meshgrid(x, y); vector_2d Z = transform(X, Y, [](double x, double y) { return sin(x) + cos(y); }); contourf(X, Y, Z, 10); show(); return 0; }