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

Function main

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

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