| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | std::vector<double> x = linspace(0, 10); |
| 8 | std::vector<double> y = transform(x, [](auto x) { return sin(x); }); |
| 9 | plot(x, y, "-o")->marker_indices({0, 5, 10, 15, 20, 25, 30, 35, 40, 45, |
| 10 | 50, 55, 60, 65, 70, 75, 80, 85, 90, 95}); |
| 11 | |
| 12 | show(); |
| 13 | return 0; |
| 14 | } |