| 3 | #include <random> |
| 4 | |
| 5 | int main() { |
| 6 | using namespace matplot; |
| 7 | |
| 8 | auto t = iota(0, pi / 500, pi); |
| 9 | auto xt = transform(t, [](auto t) { return sin(t) * cos(10 * t); }); |
| 10 | auto yt = transform(t, [](auto t) { return sin(t) * sin(10 * t); }); |
| 11 | auto zt = transform(t, [](auto t) { return cos(t); }); |
| 12 | auto p = plot3(xt, yt, zt, "-o"); |
| 13 | p->marker_indices({200}); |
| 14 | |
| 15 | show(); |
| 16 | return 0; |
| 17 | } |