| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | std::vector<double> x = linspace(0, 2, 15); |
| 8 | std::vector<double> y = transform(x, [](double x) { return exp(x); }); |
| 9 | std::vector<double> err(y.size(), 0.3); |
| 10 | |
| 11 | auto e = errorbar(x, y, err)->cap_size(18); |
| 12 | |
| 13 | show(); |
| 14 | return 0; |
| 15 | } |