| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | std::vector<double> x = iota(0, 10, 100); |
| 8 | std::vector<double> y = {20, 30, 45, 40, 60, 65, 80, 75, 95, 90}; |
| 9 | std::vector<double> err(y.size(), 10.); |
| 10 | errorbar(x, y, err)->filled_curve(true); |
| 11 | |
| 12 | axis({0, 100, 0, 110}); |
| 13 | |
| 14 | show(); |
| 15 | return 0; |
| 16 | } |