| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | std::vector<double> t = iota(0, pi / 50, 10 * pi); |
| 7 | std::vector<double> st = transform(t, [](auto x) { return sin(x); }); |
| 8 | std::vector<double> ct = transform(t, [](auto x) { return cos(x); }); |
| 9 | auto l = plot3(st, ct, t); |
| 10 | show(); |
| 11 | return 0; |
| 12 | } |