| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | std::vector<double> x = linspace(0, 10, 15); |
| 8 | std::vector<double> y = transform(x, [](double x) { return sin(x / 2); }); |
| 9 | std::vector<double> err(y.size(), 0.3); |
| 10 | |
| 11 | auto e = errorbar(x, y, err, "-s") |
| 12 | ->marker_size(10) |
| 13 | .marker_color("red") |
| 14 | .marker_face_color("red"); |
| 15 | |
| 16 | show(); |
| 17 | return 0; |
| 18 | } |
nothing calls this directly
no test coverage detected