| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | auto t = iota(0, pi / 20, 10 * pi); |
| 7 | auto xt1 = transform(t, [](auto t) { return sin(t); }); |
| 8 | auto yt1 = transform(t, [](auto t) { return cos(t); }); |
| 9 | auto xt2 = transform(t, [](auto t) { return sin(2 * t); }); |
| 10 | auto yt2 = transform(t, [](auto t) { return cos(2 * t); }); |
| 11 | plot3(xt1, yt1, t, xt2, yt2, t, "--"); |
| 12 | show(); |
| 13 | return 0; |
| 14 | } |