| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | auto sin_t = [](double t) { return sin(t); }; |
| 8 | auto cos_t = [](double t) { return cos(t); }; |
| 9 | auto t_t = [](double t) { return t; }; |
| 10 | auto fp = fplot3(sin_t, cos_t, t_t, std::array<double, 2>{0, 2 * pi}) |
| 11 | ->line_width(2); |
| 12 | hold(on); |
| 13 | fplot3(sin_t, cos_t, t_t, std::array<double, 2>{2 * pi, 4 * pi}, "--or"); |
| 14 | fplot3(sin_t, cos_t, t_t, std::array<double, 2>{4 * pi, 6 * pi}, "-.*c"); |
| 15 | hold(off); |
| 16 | |
| 17 | show(); |
| 18 | return 0; |
| 19 | } |
nothing calls this directly
no test coverage detected