| 2 | #include <set> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | std::vector<double> x = linspace(-pi, +pi, 20); |
| 8 | // test with set, just because... |
| 9 | std::set<double> x2(x.begin(), x.end()); |
| 10 | |
| 11 | std::vector<double> y = |
| 12 | transform(x, [](auto x) { return tan(sin(x)) - sin(tan(x)); }); |
| 13 | plot(x2, y, "--gs") |
| 14 | ->line_width(2) |
| 15 | .marker_size(10) |
| 16 | .marker_color("b") |
| 17 | .marker_face_color({.5, .5, .5}); |
| 18 | |
| 19 | show(); |
| 20 | return 0; |
| 21 | } |
nothing calls this directly
no test coverage detected