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

Function main

examples/line_plot/plot3/plot3_6.cpp:4–14  ·  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 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}

Callers

nothing calls this directly

Calls 4

iotaFunction · 0.85
transformFunction · 0.85
showFunction · 0.85
plot3Function · 0.50

Tested by

no test coverage detected