MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / main

Function main

examples/line_plot/fplot3/fplot3_3.cpp:4–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <matplot/matplot.h>
3
4int 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}

Callers

nothing calls this directly

Calls 4

fplot3Function · 0.85
holdFunction · 0.85
showFunction · 0.85
line_widthMethod · 0.45

Tested by

no test coverage detected