#include #include int main() { using namespace matplot; std::vector x = linspace(0, 2, 15); std::vector y = transform(x, [](double x) { return exp(x); }); std::vector err(y.size(), 0.3); auto e = errorbar(x, y, err)->cap_size(18); show(); return 0; }