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

Function main

examples/line_plot/plot3/plot3_5.cpp:4–17  ·  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 xt = transform(t, [](auto t) { return sin(t); });
8 auto yt = transform(t, [](auto t) { return cos(t); });
9 auto l = plot3(xt, yt, t, "-ob");
10 l->marker_size(10);
11 l->marker_face_color("#D9FFFF");
12 xlabel("x(t)");
13 ylabel("y(t)");
14 zlabel("t");
15 show();
16 return 0;
17}

Callers

nothing calls this directly

Calls 9

iotaFunction · 0.85
transformFunction · 0.85
xlabelFunction · 0.85
ylabelFunction · 0.85
zlabelFunction · 0.85
showFunction · 0.85
marker_face_colorMethod · 0.80
plot3Function · 0.50
marker_sizeMethod · 0.45

Tested by

no test coverage detected