| 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 = {4, 3, 5, 3, 5, 3, 6, 4, 3, 3}; |
| 10 | errorbar(x, y, err, error_bar::type::both); |
| 11 | axis({0, 100, 0, 110}); |
| 12 | axis(equal); |
| 13 | show(); |
| 14 | return 0; |
| 15 | } |