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

Function main

examples/line_plot/plot3/plot3_10.cpp:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <random>
4
5int main() {
6 using namespace matplot;
7
8 auto t = iota(0, pi / 500, pi);
9 auto xt = transform(t, [](auto t) { return sin(t) * cos(10 * t); });
10 auto yt = transform(t, [](auto t) { return sin(t) * sin(10 * t); });
11 auto zt = transform(t, [](auto t) { return cos(t); });
12 auto p = plot3(xt, yt, zt, "-o");
13 p->marker_indices({200});
14
15 show();
16 return 0;
17}

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